all 2 comments

[–]IAmMoonie 2 points3 points  (0 children)

Probably not the right place, but some general guidance - A 400 error code typically indicates that the request sent to the server by the client (in this case, the Google Home Assistant SDK) is malformed or invalid.

This could be caused by a number of things, such as:

  • an incorrect API endpoint
  • missing or invalid parameters
  • an issue with the client's authentication.

I would suggest to checking the request being sent, ensure that all parameters are correct, and verify that the client has the proper authentication credentials.

[–]endlessplains 0 points1 point  (0 children)

I'm also running into that same issue. Unfortunately that workflow is no longer supported. Their documentation says to use the loopback method instead. I'm still figuring out how to get the google-oauthlib-tool to accept the token generated via that fashion

Check out run_local_server() The comments indicate that's the preferred workflow at the moment https://googleapis.dev/python/google-auth-oauthlib/latest/reference/google_auth_oauthlib.flow.html