-
Notifications
You must be signed in to change notification settings - Fork 258
Seemingly random failed Mobileclient logins #584
Comments
Huh. I haven't heard of any issues and CI seems to be working fine. Best idea I've got is to look at the full output of gpsoauth here. That might give a hint as to what's going on. |
I just attempted to use gmusicapi and am not able to sign in either, here is the output of gpsoauth:
The code I was running was: |
It looks like I had to enable 2 step authentication on my Google account and then create an app password! I'm now logged in. It would be helpful if enabling 2 step authentication / app password creation was noted somewhere in the gmusicapi documentation. |
Very interesting. 2FA is definitely not a requirement for this, so there must be something weird going on. |
Nice find. My bet would be that Google's ATO detection got a bit more sophisticated, and that app passwords are treated as more trustworthy than a normal login. |
I'm also struggling with this. I can authenticate via a docker container locally, but not when running python locally, or at all on heroku - all failed authentications. I'll try what @prestonconnors did. |
So enabling 2FA and adding an app password, then using that app password as my "ANDROID_ID" still didn't work for me. Sad times. How come the old Webclient used to work without the |
I can confirm that the Webclient login works just fine for me, which makes me believe that it's related to the |
Behind the scenes each client only accepts auth from their respective system: google play services oauth vs normal google SSO. Details are in https://github.com/simon-weber/gmusicapi/blob/develop/gmusicapi/session.py. The app password is intended to be passed in place of your password rather than the android id: does that work for you? |
That works like a charm. Thanks! |
I had this problem as well. I got around it (by accident) without 2fa by replacing 'Mobileclient.FROM_MAC_ADDRESS' with my actual device id. To find that, run self.api.login(email, password, '1234567890abcdef'). It should return an error message saying that id is invalid (duh). It then lists valid device ids - choose the 16 digit one. Be careful, only '1234567890abcdef' will work! Other bogus ids just return False. |
More discussion on the client id angle in #589. |
Just in case anyone else finds this thread - I got gpymusic working after using the bodge from @cmrace to get my device ID (have 2FA, set up app password and used that along with my email for credentials, passing them into gmusicapi directly in an intepreter, 3.6 FWIW). I tried to oauth after that which failed but I assume that's because i have a full music account. After that python bin/gpymusic seems to do the trick. |
Since this was related to device ids, I'm going to merge this with #590. |
A couple people are seeing this here: christopher-dG/gpymusic#36
I figured I'd post a heads up while it's still developing in case you have any insights.
The text was updated successfully, but these errors were encountered: