Open kumabon opened 10 months ago
I cannot reproduce this error, since I have 2fa enabled for my accounts and new ones must have 2fa as well.
Same issue on my side, but with Docker install - latest version. I do have 2fa activated and etc. In fact, my phone pings me to confirm the login, but the error is already there.
docker run -it --rm --name icloudpd -v //OPENMEDIAVAULT/Personal/IOS_Photos:/data icloudpd/icloudpd:latest icloudpd --directory /data --username XXXXX@gmail.com --password XXXXX--watch-with-interval 3600 2024-07-20 12:17:31 DEBUG Authenticating... 2024-07-20 12:17:33 ERROR Missing apple_id field (Missing apple_id field) Traceback (most recent call last): File "pyicloud_ipd/base.py", line 241, in _authenticate_with_token File "requests/sessions.py", line 637, in post File "pyicloud_ipd/session.py", line 167, in request File "pyicloud_ipd/session.py", line 196, in _raise_error pyicloud_ipd.exceptions.PyiCloudAPIResponseException: Missing apple_id field (Missing apple_id field)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "starters/icloudpd_ex.py", line 122, in
I can confirm this is an issue on my end as well. I do not have 2FA enabled and do not want to enable it whatsoever.
I was able to sign in just fine (I even had photos.icloud.com open while attempting to run the downloader).
I have 2FA, and the prompt comes up and I approve it, but the docker installer still fails.
Issue was that my Apple ID was locked for some reason... after unlocking it -it works fine.
Any chance you can add an appropriate error code?
Same, Apple ID was mysteriously locked. Unlocking solved the problem.
tldr; My Apple ID/account was still available in all other contexts. There was no other indication or message that the account was locked. I was even able to login via Safari on macOS without issue. It was only when I logged in from a private Safari session that I got the account locked message. Following the bizarre process Apple has for unlocking that seems like you have to reset your password worked.
The issue persists after attempting to reset my account password. As before, I can still log in fine on anything, and I still have an actual device signed in, indicating this is not an issue with the account being locked in any capacity.
If there is anything I need to retrieve from the server response to help diagnose the issue, please let me know.
Overview
With an account without 2fa, running icloudpd-1.17.3-windows-amd64.exe fails with an error 'Missing apple_id field (Missing apple_id field)'. No such problem for accounts with 2fa.
Confirmed iCloud username/email + Password correct by logging in at appleid.apple.com
Steps to Reproduce
Expected Behavior
Logs into icloud
Actual Behavior
Fails to login
Context
Potentially related to issue #747
Also tried icloudpd-1.16.2-windows-amd64.exe but with different error 'Unknown reason'. 1.16.2 Last successful run on 3 Dec 2023, failed on 10 Dec 2023, did not try between those dates