-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error 400: invalid_request #10
Comments
It uses the OOB flow which has been deprecated for any new clients it looks like. https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html#disallowed-oob. |
The workaround that I found to this currently is available to anyone who uses Nabu Casa or has their HA install available outside of their home network via DuckDNS or some other method. Generate Client ID & Secret:
Generate Token:
|
Worked for me thanks! |
Didn't work for me, though :-( |
I get the same error when I run it |
Just run: |
Thanks ! It's working now, however I had to set the Application Type to 'Desktop Application' instead of 'Web Application' otherwise Google would block the auth |
Hey @baldachyn. I updated get_credentials script but I also had to generate new credentials in google fitness API. I had to choose Desktop application, otherwise it was not working. |
I was able to get the token file, but when I upload it into home assistant, I get the error below. Any ideas? Traceback (most recent call last): |
I have the same issue |
I too, have the same issue. |
After couple of days working the integration stopped providing data, log says:
google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})
while trying to re-authenticate with google, google says
I am only one experiencing this?
The text was updated successfully, but these errors were encountered: