-
-
Notifications
You must be signed in to change notification settings - Fork 426
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
CSRF check failed. #366
Comments
Having the same problem... Did you find any way to reconcile on MAC? |
On a fresh (linkedin_api was never installed before) M1 MacBook Air it's functioning fine. |
@tomquirk wrote in the code that this may need to be fixed, but I'm not sure how so. Here is the "get_profile" function: NOTE this still works for now, but will probably eventually have to be converted to The "res" variable returns a 999 response and the CSRF. I tried to uninstall and reinstall but no success |
I found this, too. And played a little with it. The problem is my i9 iMac. All other OS and other machines with MacOS are working without any problems. I expect, that there is somewhere just a corrupted file we would need to delete... I'm actually looking into this... but I'm in regular cases a BareMetal coder... OS and Browser/Net stuff isn't really mine... |
YES! I found that posibility of error while investigating the cookie-stuff in cookie_repository.py |
Great find. Working for me as well! |
As far I understand the whole cookie-thing... It's not an security issue! |
I was actually just using three functions.
Everything was fine until yesterday...
Cause I had no problems with your api, it's hard to say how things were looking on the api-side before the crash.
The login
api = Linkedin(username, password)
seems to function.If I
print(api)
, I'll get <linkedin_api.linkedin.Linkedin object at 0x109c91730> with changing hex-numbers.posts = api.get_profile_posts(public_id=user2scrap, post_count=5)
crashes finally in thedata = res.json()
line ofdef get_profile(self, public_id=None, urn_id=None):
, cause the call ofres = self._fetch(f"/identity/profiles/{public_id or urn_id}/profileView")
results in an CSRF check failed - at least I'm getting this error if I try to use the to fetch link, like https://www.linkedin.com/voyager/api/identity/profiles/abcUSERxyz/profileView, direct in a browser I'm logged in, too.I'm on it to understand better how your lib/api is working to supply you with better information...
EDIT:
OK, it seems to be a problem with MacOS - on Linux everything is fine... even I did the whole development on MacOS...
The text was updated successfully, but these errors were encountered: