Apple ID works in browser, but icloudpd login fails with -20101 after account lock #1332
Replies: 5 comments 3 replies
-
|
Take a look at issue1331. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @wip58 I took a look at issue #1331, but I think my situation is different. I am using the following command: From the logs: /signin/init succeeds (HTTP 200) Here is a sanitized excerpt of the output: DEBUG request: POST /appleauth/auth/signin/init → 200 OK So it seems the login is rejected outright, rather than failing during 2FA or session handling. For context:
That’s why I suspect this might be an Apple-side restriction on API-based logins after the previous account lock, rather than a 2FA issue. I hope this helps and you have other suggestions? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @DriessenbeeR, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @rhoopr and hi @wip58 I suppose, VENV was not the ideal environment for icloudpd? I suppose I keep it in a Docker environment? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @boredazfcuk, Thanks for your answer! I first used icloudpd inside a Python virtual environment (VENV), because that is what I initially learned as the recommended way for Python tools. However, I ran into the problem described above in my setup. Based on the suggestion from @wip58, I tried Docker. After switching to Docker, the issues disappeared, so it seems the problem was related to the environment rather than my script. At the moment everything is working fine with Docker, so I will probably stick with this setup for stability. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m running into an issue with icloudpd after my Apple ID was temporarily locked due to repeated automated login attempts from a script.
Here’s my situation:
When running:
icloudpd --username --auth-only --cookie-directory ~/.icloudpd
I always get:
code: -20101
message: "Check the account information you entered and try again."
Additional details:
From the logs it looks like:
So it seems Apple is rejecting API-based authentication, while normal login still works.
My question:
Has anyone experienced this before?
Is this a known Apple-side restriction (e.g. blocking programmatic logins after suspicious activity), and if so:
Any advice or similar experiences would be highly appreciated.
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions