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

Google Cloud STT throws 503 error on first run #139290

Closed
chex7 opened this issue Feb 25, 2025 · 4 comments · Fixed by #141266
Closed

Google Cloud STT throws 503 error on first run #139290

chex7 opened this issue Feb 25, 2025 · 4 comments · Fixed by #141266

Comments

@chex7
Copy link

chex7 commented Feb 25, 2025

The problem

I've not tested this very thoroughly yet, but from googling I would guess that it, after the first fail, works for about 120 seconds whereupon it fails after that. This leads to me having to wake my assistant twice every time when using google_cloud as stt provider.

Log:
2025-02-25 20:29:03.176 ERROR (MainThread) [homeassistant.components.google_cloud.stt] Error occurred during Google Cloud STT call: 503 recvmsg:Connection reset by peer
2025-02-25 20:29:03.298 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [135241260007776] Received binary message for non-existing handler 1

What version of Home Assistant Core has the issue?

System Information version | core-2025.2.4 -- | -- installation_type | Home Assistant Container dev | false hassio | false docker | true user | root virtualenv | false python_version | 3.13.1 os_name | Linux os_version | 6.8.0-52-generic arch | x86_64 timezone | Europe/Stockholm config_dir | /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.5 Stage | running Available Repositories | 1615 Downloaded Repositories | 8
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Dashboards dashboards | 6 -- | -- resources | 3 views | 5 mode | storage
Network Configuration adapters | lo (disabled), eth0 (enabled, default, auto) -- | -- ipv4_addresses | lo (127.0.0.1/8), eth0 (172.18.0.4/16) ipv6_addresses | lo (::1/128), eth0 () announce_addresses | 172.18.0.4
Recorder oldest_recorder_run | February 14, 2025 at 08:35 -- | -- current_recorder_run | February 24, 2025 at 16:54 estimated_db_size | 59.59 MiB database_engine | sqlite database_version | 3.47.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Google Cloud

Link to integration documentation on our website

https://www.home-assistant.io/integrations/google_cloud

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @lufton, @tronikos, mind taking a look at this issue as it has been labeled with an integration (google_cloud) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of google_cloud can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign google_cloud Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


google_cloud documentation
google_cloud source
(message by IssueLinks)

@chex7 chex7 changed the title Google Cloud SST throws 503 error on first run Google Cloud STT throws 503 error on first run Feb 26, 2025
@tronikos
Copy link
Member

Which STT model and language are you using?

@chex7
Copy link
Author

chex7 commented Mar 1, 2025

Language: sv-SE
STT model: default (also tried latest_short, same issue there)

@l7ssha
Copy link

l7ssha commented Mar 3, 2025

Also happens to me from time to time:

Logger: homeassistant.components.google_cloud.stt
Source: components/google_cloud/stt.py:142
integration: Google Cloud (documentation, issues)
First occurred: 3:24:26 PM (1 occurrences)
Last logged: 3:24:26 PM

Error occurred during Google Cloud STT call: 500 Internal error from Core

Trying again after failure then works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants