biemster / FindMy

Query Apple's Find My network
275 stars 47 forks source link

KeyError: 'M2' #62

Open lococafe opened 2 days ago

lococafe commented 2 days ago

Getting this new error with a recent rebuild of FindMy. Looks like Apples response has changed?

user@server:~/FindMy$ ./request_reports.py Apple ID: myapplieidhere@icloud.com Password: pyprovision is not installed, querying http://localhost:6969 for an anisette server pyprovision is not installed, querying http://localhost:6969 for an anisette server Traceback (most recent call last): File "/home/user/FindMy/./request_reports.py", line 72, in auth=getAuth(regenerate=args.regen, second_factor='trusted_device' if args.trusteddevice else 'sms'), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/FindMy/./request_reports.py", line 33, in getAuth mobileme = icloud_login_mobileme(second_factor=second_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/FindMy/pypush_gsa_icloud.py", line 37, in icloud_login_mobileme g = gsa_authenticate(username, password, second_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/FindMy/pypush_gsa_icloud.py", line 90, in gsa_authenticate usr.verify_session(r["M2"]) ~^^^^^^ KeyError: 'M2'

biemster commented 1 day ago

KeyError M2 means your login failed, are you sure you typed your apple id, password and 2FA correctly?