AndBobsYourUncle / hassio-addons

73 stars 41 forks source link

Unable to authenticate #19

Open jokerigno opened 4 years ago

jokerigno commented 4 years ago

hi,

I've tried to use you google assistant webserver addon but it seems to be broken. There are a bunch of guys which have the same issue so maybe it's not only for me.

This is still supported?

GTStan commented 4 years ago

Hi, sample problem here. My HA version is 0.99.3 on Raspberry Pi 4. Here are the error messages I got after clicking the "connect" button on the authentication page.

500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cprequest.py", line 627, in respond self._do_respond(path_info) File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cprequest.py", line 686, in _do_respond response.body = self.handler() File "/usr/local/lib/python3.5/dist-packages/cherrypy/lib/encoding.py", line 221, in call self.body = self.oldhandler(*args, *kwargs) File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cpdispatch.py", line 54, in call return self.callable(self.args, self.kwargs) File "/hassio_oauth.py", line 46, in token self.oauth2.fetch_token(self.user_data['token_uri'], client_secret=self.user_data['client_secret'], code=token) File "/usr/local/lib/python3.5/dist-packages/requests_oauthlib/oauth2_session.py", line 244, in fetch_token self._client.parse_request_body_response(r.text, scope=self.scope) File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 411, in parse_request_body_response self.token = parse_token_response(body, scope=scope) File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 379, in parse_token_response validate_token_parameters(params) File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 386, in validate_token_parameters raise_from_error(params.get('error'), params) File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/errors.py", line 415, in raise_from_error raise cls(kwargs) oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) Bad Request Powered by CherryPy 17.0.0

happycgi2 commented 4 years ago

@GTStan same problem on Raspberry Pi 4.