Skip to content
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 starting Google assistant SDK add-on, auth exception #3054

Closed
Rubquila opened this issue May 19, 2023 · 1 comment
Closed

Error starting Google assistant SDK add-on, auth exception #3054

Rubquila opened this issue May 19, 2023 · 1 comment

Comments

@Rubquila
Copy link

Describe the issue you are experiencing

I have configured like documentation, but when i try to start the add-on, it shows an error about authentication.

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

Which add-on are you reporting an issue with?

Google Assistant SDK

What is the version of the add-on?

2.5.0

Steps to reproduce the issue

  1. Configure google cloud like documentation
  2. Start add-on

...

System Health information

System Information

version core-2023.5.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 6.1.21-v7
arch armv7l
timezone Europe/Madrid
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4996
Installed Version 1.32.1
Stage running
Available Repositories 1285
Downloaded Repositories 7
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.1
update_channel stable
supervisor_version supervisor-2023.04.1
agent_version 1.5.1
docker_version 23.0.3
disk_total 28.0 GB
disk_used 12.1 GB
healthy true
supported true
board rpi3
supervisor_api ok
version_api ok
installed_addons File editor (5.6.0), Mosquitto broker (6.2.1), RPC Shutdown (2.4), motionEye (0.19.1), Node-RED (14.2.0), Advanced SSH & Web Terminal (15.0.0), FTP (4.7.0), VLC (0.2.0), MPD (1.7.0), Zigbee2MQTT (1.30.4-1), Grocy (0.19.1), Google Assistant SDK (2.5.0), ESPHome (2022.11.5), Duck DNS (1.15.0), Home Assistant Google Drive Backup (0.110.4), Samba share (10.0.1)
Dashboards
dashboards 1
resources 0
views 5
mode storage
Recorder
oldest_recorder_run 9 de mayo de 2023, 10:09
current_recorder_run 18 de mayo de 2023, 11:32
estimated_db_size 1347.06 MiB
database_engine sqlite
database_version 3.40.1
Sonoff
version 3.5.1 (122751c)
cloud_online 1 / 2
local_online 1 / 1

Anything in the Supervisor logs that might be useful for us?

No response

Anything in the add-on logs that might be useful for us?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:54:50] INFO: Installing/Updating service client_secrets file
[17:54:50] INFO: Starting Home Assistant GAssisant SDK...
OAuth with Google
Initialize device infos
Run Google Assistant SDK
Traceback (most recent call last):
  File "/usr/bin/hassio_gassistant.py", line 64, in <module>
    with Assistant(credentials, device_model_id) as assistant:
  File "/usr/local/lib/python3.7/dist-packages/google/assistant/library/assistant.py", line 101, in __init__
    credentials, self._set_credentials)
  File "/usr/local/lib/python3.7/dist-packages/google/assistant/library/auth_helpers.py", line 40, in __init__
    self._credentials.refresh(http_request)
  File "/usr/local/lib/python3.7/dist-packages/google/oauth2/credentials.py", line 136, in refresh
    self._client_secret))
  File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 237, in refresh_grant
    response_data = _token_endpoint_request(request, token_uri, body)
  File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 111, in _token_endpoint_request
    _handle_error_response(response_body)
  File "/usr/local/lib/python3.7/dist-packages/google/oauth2/_client.py", line 61, in _handle_error_response
    error_details, response_body)
google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', '{\n  "error": "invalid_grant",\n  "error_description": "Bad Request"\n}')
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

Additional information

No response

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 21, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants