question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't connect to Google home addon - Could not get master token.

See original GitHub issue

Hello,

I have read the other issues with the same error than mine, but I couldn’t resolve it.

I use the Google Home addon of Home Assistant, but the connection is refused. I’ve tried to take off the protection methods to my google account too.

Here the log :

2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance. 2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None 2022-05-13 10:58:25 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "m*******************", password to "V********", master_token to "" and android_id to 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] There is no stored master_token, logging in using username and password 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] There is no stored android_id, generating a new one 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Generating android id... 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Generated android id: 02d89392d5f67400 2022-05-13 10:58:25 ERROR (SyncWorker_15) [glocaltokens.client] [!] Could not get master token. 2022-05-13 10:58:25 DEBUG (SyncWorker_15) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/IDELETEDTHIS', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'} 2022-05-13 10:58:25 ERROR (MainThread) [custom_components.google_home]

*Edit : Of course, no pop-up opens.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:46 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
leikoiljacommented, Jun 1, 2022

Sorry, guys, my fault (not the first time forgetting to update manifest file 😮‍💨 🤦 😅 ) Fixed here: https://github.com/leikoilja/ha-google-home/pull/541 will merge and deploy a new release

2reactions
mitch55500commented, Jun 1, 2022

Arrfff, Always the same error. Yet, I have uninstall Google Home, And reboot HA and then reinstall GH.

2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
2022-06-01 14:13:34 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "m*******************", password to "V********", master_token to "" and android_id to 
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored master_token, logging in using username and password
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored android_id, generating a new one
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] Generating android id...
2022-06-01 14:13:34 DEBUG (SyncWorker_2) [glocaltokens.client] Generated android id: a6842563dc53d585
2022-06-01 14:13:35 ERROR (SyncWorker_2) [glocaltokens.client] [!] Could not get master token.
2022-06-01 14:13:35 DEBUG (SyncWorker_2) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'DELETED', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'}
2022-06-01 14:13:35 ERROR (MainThread) [custom_components.google_home] 

image

*EDIT : It works!!

I have forgotten I have reactived the double factor identification, sorry.

Thanks @leikoilja

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is this message generated from your custom component ...
Your custom component had been running fine for a couple days. Then this morning, my home assistant log showed this error and then...
Read more >
Fix your Google Nest Wifi or Google Wifi network
Follow these troubleshooting steps to fix: Google Nest Wifi router or point or Google Wifi point shows offline in mesh test; Can't connect...
Read more >
Issue with retrieving Google access token - Auth0 Community
Learn how to call an external Identity Provider API. It says access_token should be included in identities array like below: "identities": { " ......
Read more >
Using Google ID tokens to authenticate users
To authenticate a user, a client application must send a JSON Web Token (JWT) in ... If you cannot use the header when...
Read more >
Account linking with OAuth-based Google Sign-in ...
First, ask the user to give consent to access their Google profile. Use the information in their profile to identify the user. If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found