Around version 1.29.x or so, one of my accounts stopped working while another account still worked. The bad account credentials did not change and icloudpd began dumping a JSON output that I had not seen before on previous authentication problems. This persists even with the latest version, 1.32.1.
I expected the app to begin downloading photos using the arguments I've assigned, as it has done in the past.
2025-09-01 08:56:12 INFO Processing user: user@email
2025-09-01 08:56:12 DEBUG Authenticating...
iCloud Password for user@email:
2025-09-01 08:56:19 INFO Invalid email/password combination.
2025-09-01 08:56:19 DEBUG {
"request": {
"method": "POST",
"url": "https://idmsa.apple.com/appleauth/auth/signin/init",
"headers": {
"Origin": "https://idmsa.apple.com",
"Referer": "https://idmsa.apple.com/",
"Content-Type": "application/json",
"X-Apple-OAuth-Client-Id": "OBFUSCATED-810530919",
"X-Apple-OAuth-Client-Type": "OBFUSCATED-1961643734",
"X-Apple-OAuth-Redirect-URI": "OBFUSCATED-1866116011",
"X-Apple-OAuth-Require-Grant-Code": "OBFUSCATED-4261170317",
"X-Apple-OAuth-Response-Mode": "OBFUSCATED-1578278625",
"X-Apple-OAuth-Response-Type": "OBFUSCATED-1997877400",
"X-Apple-OAuth-State": "OBFUSCATED-1322006840",
"X-Apple-Widget-Key": "OBFUSCATED-810530919",
"scnt": "OBFUSCATED-1080461492",
"X-Apple-ID-Session-Id": "OBFUSCATED-1939794523"
},
"cookies": {
"dslang": "US-EN",
"site": "USA",
"aasp": "OBFUSCATED-1939794523"
},
"content": {
"a": "OBFUSCATED-2665417089",
"accountName": "OBFUSCATED-2149657519",
"protocols": [
"s2k",
"s2k_fo"
]
}
},
"response": {
"status_code": 200,
"headers": {
"Content-Type": "application/json;charset=UTF-8",
"X-Apple-I-Request-ID": "OBFUSCATED-2888085107",
"scnt": "OBFUSCATED-450725492"
},
"cookies": {
"dslang": "US-EN",
"site": "USA"
}
}
}
2025-09-01 08:56:19 DEBUG {
"request": {
"method": "POST",
"url": "https://idmsa.apple.com/appleauth/auth/signin/complete?isRememberMeEnabled=true",
"headers": {
"Origin": "https://idmsa.apple.com",
"Referer": "https://idmsa.apple.com/",
"Content-Type": "application/json",
"X-Apple-OAuth-Client-Id": "OBFUSCATED-810530919",
"X-Apple-OAuth-Client-Type": "OBFUSCATED-1961643734",
"X-Apple-OAuth-Redirect-URI": "OBFUSCATED-1866116011",
"X-Apple-OAuth-Require-Grant-Code": "OBFUSCATED-4261170317",
"X-Apple-OAuth-Response-Mode": "OBFUSCATED-1578278625",
"X-Apple-OAuth-Response-Type": "OBFUSCATED-1997877400",
"X-Apple-OAuth-State": "OBFUSCATED-1322006840",
"X-Apple-Widget-Key": "OBFUSCATED-810530919",
"scnt": "OBFUSCATED-1080461492",
"X-Apple-ID-Session-Id": "OBFUSCATED-1939794523"
},
"cookies": {
"dslang": "US-EN",
"site": "USA",
"aasp": "OBFUSCATED-1939794523"
},
"content": {
"accountName": "OBFUSCATED-2149657519",
"c": "OBFUSCATED-1942856417",
"m1": "OBFUSCATED-3016782708",
"m2": "OBFUSCATED-3663754350",
"rememberMe": true,
"trustTokens": []
}
},
"response": {
"status_code": 401,
"headers": {
"Content-Type": "application/json;charset=UTF-8",
"X-Apple-I-Request-ID": "OBFUSCATED-218088663",
"scnt": "OBFUSCATED-1875386351"
},
"cookies": {
"dslang": "US-EN",
"site": "USA"
}
}
}
Overview
Around version 1.29.x or so, one of my accounts stopped working while another account still worked. The bad account credentials did not change and icloudpd began dumping a JSON output that I had not seen before on previous authentication problems. This persists even with the latest version, 1.32.1.
Steps to Reproduce
sudo icloudpd -u user@email.com -p PASSWORD -d "<DIRECTORY WITH A SPACE>" --cookie-directory /cookie/directory/with/no/spaces --set-exif-datetime --auto-deleteExpected Behavior
I expected the app to begin downloading photos using the arguments I've assigned, as it has done in the past.
Actual Behavior
It produces this in the console: