-
Notifications
You must be signed in to change notification settings - Fork 457
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
Authentication required for Account. (421) when trying to query api.calendar.events() #330
Authentication required for Account. (421) when trying to query api.calendar.events() #330
Comments
My script needed a verification code today and hit this error for the first time. While writing a simple test script to show the issue and was reminded that it uses cookies; I got curious and found two files in the directory, {foo} and {foo}.session (where {foo} is an appleid email address with punctuation removed). After removing these files I was able to re-authenticate (after satisfying the verification challenge of course). |
That didn't work for me, and the same happens for me with the reminders service ... the fmip and contacts services, however, seem to work just fine ... Any chance one of the contributors can guide us to how we can debug this further? One thing I found interesting, not sure if related to the above issue, is that the |
A duplicate of #322. (Also experiencing the same issue.) |
Same thing for me. |
Having the same issue. Would really love to find a solution here. |
Same here |
Same issue here |
Same here |
After comparing the request fired at browser to the payload generated at pyicloud, i found that param To fix the problem, you can append the following code to
|
Many thanks @zarkin404 - that fixed it for me but needed to be patched on line 83 also. |
Thank you very much |
The monkeypatch is working for me. If this is generally a working solution, please merge soon. |
Happening for me today after monkey patching the suggested. Anyone else seeing this? |
I'm sorry fix didn't work for me on Python 3.9.2 File "/home/pi/python/./icloudlogin.py", line 62, in |
I did the patch, but I'm now getting Which is different as the error code is 500. Still not working, really need a solution. |
Fixes picklepete#330 with @zarkin404's work.
The problem
I'm trying to retrieve calendar data from iCloud. I can authenticate successfully using the sample 2fa/2sa code. I can successfully call some of the APIs such as api.iphone.location(). However, when trying the following code, I get an error "pyicloud.exceptions.PyiCloudAPIResponseException: Authentication required for Account. (421)".
Environment
pip show pyicloud
): 0.10.2python -V
): Python 3.7.1 64-bitTraceback/Error logs
Additional information
I have including additional debug logging using:
Thanks in advance for your support!
The text was updated successfully, but these errors were encountered: