-
Notifications
You must be signed in to change notification settings - Fork 171
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
Throw error when redirecting to authwall #134
Comments
send a PR for sure, I'm very busy realocating right now, however there are more people to review and approve it, once that's done I'll just publish the npm package. Thank you. |
Done #136 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is posible your cookie credentials become invalid and LinkedIn redirects to the "authwall" where you need to login again.
The current code simple returns an empty profile object that generates an error like
Cannot read property 'name' of undefined at module.exports (xxx/node_modules/scrapedin/src/profile/cleanProfileData.js:5:23)
At least for me, in that cases, it's necessary to know if the profile has failed due auth error and because of this I have modified slightly the
profile.js
file with the next lines:I don't know if this is something you want to integrate in the project. If so, let me know and I will send a PR.
Thanks in advance.
The text was updated successfully, but these errors were encountered: