mandarons / icloudpy

iCloud web service interface library in Python
Other
188 stars 19 forks source link

[BUG] icloudpy fails to login as a user #2

Closed mchonofsky closed 1 year ago

mchonofsky commented 2 years ago

Describe the bug ICloudPyService fails to get login session

To Reproduce Steps to reproduce the behavior:

  1. run api = ICloudPyService(username, password)
  2. command raises error ("missing apple_id field")

Expected behavior Command completes successfully

It looks like Apple has changed, perhaps for only some connections, the headers it returns iin response to a login attempt. Thus it fails to get dsWebAuthToken and then _authenticate_with_token fails.

mandarons commented 2 years ago

@mchonofsky I am not able to find 'missing apple_id field' string anywhere in the code. Is that the exact error you see?

14278358 commented 1 month ago

Encountered the same problem, and this happened again for accounts without 2FA authentication.