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

getProfile(), getOwnProfile() return status 400 #368

Open
kiloz opened this issue Mar 1, 2022 · 2 comments
Open

getProfile(), getOwnProfile() return status 400 #368

kiloz opened this issue Mar 1, 2022 · 2 comments

Comments

@kiloz
Copy link

kiloz commented Mar 1, 2022

FOUND:
Running the example provided here: https://github.com/eilonmore/linkedin-private-api/blob/master/examples/profile.ts results in status 400 generated.

EXPECTED:
Response with respective profile data types.

Thank you for investigating!

@kiloz
Copy link
Author

kiloz commented Mar 1, 2022

WORKAROUND:
hack node_modules/linkedin-private-api/dist/src/requests/profile.request.js
replacing : decorationId: 'com.linkedin.voyager.dash.deco.identity.profile.FullProfileWithEntities-35', <-- generates 400
with: : decorationId: 'com.linkedin.voyager.dash.deco.identity.profile.TopCardSupplementary-86', <-- 200 OK

It seems that we need to dynamically learn and set the decorationId key.

@alexis2m
Copy link

Any cue on the learning of the decorationId key ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants