core: Google Assistant can't connect to Google on every restart

The problem

Since 2021.7.0b0 I find this error in my logs at every single restart of HA:

2021-07-02 09:08:46 ERROR (MainThread) [homeassistant.components.google_assistant.http] Could not contact https://homegraph.googleapis.com/v1/devices:requestSync

I can trigger the sync manually from HA services and from my phone without any problems showing. I do see DNS requests for those syncs, but I do not see a DNS request for the one throwing the error (possibly meaning it doesn’t even leave the box/container).

I am using a manual setup of Assistant (not Nabu Casa).

What is version of Home Assistant Core has the issue?

core-2021.7.0b0

What was the last working version of Home Assistant Core?

core-2021.6.6

What type of installation are you running?

Home Assistant Container

Integration causing the issue

google_assistant

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (6 by maintainers)

Most upvoted comments

Same here after a restart:

2022-02-23 08:44:15 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

Logger: homeassistant.components.google_assistant.http Source: components/google_assistant/http.py:208 Integration: Google Assistant (documentation, issues) First occurred: 10:45:37 (4 occurrences) Last logged: 11:24:31

Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404 Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 404

That one yes, the other: no

After the restart from upgrading to 2022.7.3

Logger: homeassistant.components.google_assistant.http
Source: components/google_assistant/http.py:217
Integration: Google Assistant ([documentation](https://www.home-assistant.io/integrations/google_assistant), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+google_assistant%22))
First occurred: 08:47:06 (1 occurrences)
Last logged: 08:47:06
Request for https://homegraph.googleapis.com/v1/devices:reportStateAndNotification failed: 404