Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError - LinkedIn constructor error #990

Closed
Prem95 opened this issue Dec 11, 2024 · 2 comments
Closed

TypeError - LinkedIn constructor error #990

Prem95 opened this issue Dec 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Prem95
Copy link

Prem95 commented Dec 11, 2024

Describe the bug

When integrating client-linkedin, an error occurs: "TypeError: linkedin_api_1.Client is not a constructor". This error prevents the LinkedIn client from starting properly.

To Reproduce

  1. Attempt to start the LinkedIn client.
  2. Observe the error message in the console.

Expected behavior

The LinkedIn client should start without any errors, and it should initialize the agent for the character NEEToshi successfully.

Errors Log

["◎ LinkedIn client started"]

⛔ ERRORS
Error starting agent for character NEEToshi:
{}

TypeError: linkedin_api_1.Client is not a constructor
at new ClientBase (/Users/prem/Documents/PERSONAL/eliza/packages/client-linkedin/dist/base.js:67:35)
at new LinkedInManager (/Users/prem/Documents/PERSONAL/eliza/packages/client-linkedin/dist/index.js:11:23)
at Object.start (/Users/prem/Documents/PERSONAL/eliza/packages/client-linkedin/dist/index.js:20:25)
at async initializeClients (file:///Users/prem/Documents/PERSONAL/eliza/agent/src/index.ts:232:33)
at async startAgent (file:///Users/prem/Documents/PERSONAL/eliza/agent/src/index.ts:349:25)
at async startAgents (file:///Users/prem/Documents/PERSONAL/eliza/agent/src/index.ts:372:13)

⛔ ERRORS
Error starting agents:
{}

Additional context*

This issue may be related to the incorrect instantiation of the LinkedIn client due to linkedin_api_1.Client not being a constructor. Further investigation into the client library is needed.

@Prem95 Prem95 added the bug Something isn't working label Dec 11, 2024
@Prem95
Copy link
Author

Prem95 commented Dec 11, 2024

@bkellgren Are you sure linkedin-api: ^1.0.0 is the correct package?

Reference - https://www.npmjs.com/package/linkedin-api?activeTab=readme

@Prem95
Copy link
Author

Prem95 commented Dec 18, 2024

Thanks for closing this. client-linkedin was trash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants