Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not get master token - 'Error': 'NeedsBrowser' #566

Closed
TonioBDS opened this issue Oct 3, 2024 · 1 comment
Closed

Could not get master token - 'Error': 'NeedsBrowser' #566

TonioBDS opened this issue Oct 3, 2024 · 1 comment

Comments

@TonioBDS
Copy link

TonioBDS commented Oct 3, 2024

Describe the bug
I've been using this module for couple of years now, but recently (end of september), I could not get anymore a master token.
I get :
/var/www/html/plugins/ghlocal/resources# python3 /var/www/html/plugins/ghlocal/core/class/../../resources/get_tokens_verbose.py [email protected] xxxxxxxxxxxxxx True DEBUG:glocaltokens.client:Initializing new GLocalAuthenticationTokens instance. DEBUG:glocaltokens.client:Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None DEBUG:glocaltokens.client:Set GLocalAuthenticationTokens client username to "a<redacted>", password to "<redacted>", master_token to "None" and android_id to None DEBUG:glocaltokens.client:There is no stored master_token, logging in using username and password DEBUG:glocaltokens.client:There is no stored android_id, generating a new one DEBUG:glocaltokens.client:Generating android id... DEBUG:glocaltokens.client:Generated android id: d3e233381e693276 ERROR:glocaltokens.client:[!] Could not get master token. DEBUG:glocaltokens.client:Request response: {'Error': 'NeedsBrowser', 'Url': 'https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/auth?hl%3Den_us%26xoauth_display_name%3DAndroid%2BLogin%2BService%26source%3DAndroid%2BLogin&plt=AKgnsbu2LrQj_nFyBTUd8kjYvE55a2jPxqTSXdCi82HAU1-uhuaC_Aq04mX9j8NUBOVsD39HsHHbJ78hU7sclkEJBqYGhZ1EB4ZM0NA52Lj5nHka_r6ohFpl2Cf80p4FyokZRQ6SEt7B', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'} None

To Reproduce
Debian 10
glocaltokens Version: 0.7.2
gpsoauth Version: 1.1.1
ghome-foyer-api Version: 1.0.0
protobuf Version: 4.25.5 but also tried with 3.20.3
Python 3.9.2

I have activated the 2FA on my google account and created a dedicated application password
The master token is not recovered and instead I get this above-mentionned error Request 'NeedsBrowser'

Please let me know if this issue is known or if you need more information from me to investigate.
Many thanks !

I cannot tell you the history of python modules versions, I'm using this module through a plugin of Jeedom (Home assistant like) and I remember having launched updates that could have upgrade modules...

@TonioBDS
Copy link
Author

Find solution here:
leikoilja/ha-google-home#890 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant