Traceback (most recent call last):
File "/home/pi/GoogleJarvis/Dev/test_google_voice_avec_bouton.py", line 90, in <module>
main()
File "/home/pi/GoogleJarvis/Dev/test_google_voice_avec_bouton.py", line 49, in main
assistant = aiy.assistant.grpc.get_assistant()
File "/opt/aiy/projects-python/src/aiy/assistant/grpc.py", line 80, in get_assistant
credentials = aiy.assistant.auth_helpers.get_assistant_credentials()
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 132, in get_assistant_credentials
return _try_to_get_credentials(credentials_file)
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 100, in _try_to_get_credentials
return _load_credentials(_ASSISTANT_CREDENTIALS)
File "/opt/aiy/projects-python/src/aiy/assistant/auth_helpers.py", line 63, in _load_credentials
credentials.refresh(http_request)
File "/home/pi/.local/lib/python3.5/site-packages/google/oauth2/credentials.py", line 136, in refresh
self._client_secret))
File "/home/pi/.local/lib/python3.5/site-packages/google/oauth2/_client.py", line 237, in refresh_grant
response_data = _token_endpoint_request(request, token_uri, body)
File "/home/pi/.local/lib/python3.5/site-packages/google/oauth2/_client.py", line 111, in _token_endpoint_request
_handle_error_response(response_body)
File "/home/pi/.local/lib/python3.5/site-packages/google/oauth2/_client.py", line 61, in _handle_error_response
error_details, response_body)
google.auth.exceptions.RefreshError: ('invalid_client: Unauthorized', '{\n "error": "invalid_client",\n "error_description": "Unauthorized"\n}')
Hello
I created a project 2 years ago with a voice kit that worked very well at the time.
It has not worked for a little over a year and now cannot be restarted! I have an error like: 'invalid_client: Unauthorized'
I tried to recreate my credentials, I even tried to create a new Google account but same result!
Have you ever encountered this scenario? A big thank you in advance to those who can help me!
Here's a snippet of the code:
and here is the log obtained: