Google assistant 429/500 errors

Hello,

I recently configured Google Assistant with Home Assistant. Everything was working. Suddenly now I am getting errors. Google says the devices are offline, and cannot talk to them. Home Assistant shows errors like:

2022-08-03 18:11:11 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

If I try to sync the devices, I get errors like:

2022-08-03 17:53:25 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 429
2022-08-03 17:53:25 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140663093135584] Unable to sync devices with result code: 429, check log for more info.
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_callead) [homeassistant.components.aut
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_serviceead) [homeassistant.components.aut
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(ready running
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_servicet_location_updates] Update Tesla l
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_callt_location_updates] Update Tesla l
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_callt_location_updates] Update Tesla l
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callt_location_updates] Update Tesla l
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 429, check log for more info.
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callt_location_updates] Update Tesla l
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 429, check log for more info.
2022-08-03 17:53:33 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500
2022-08-03 17:53:33 ERROR (MainThread) [homeassistant.core] Error executing service: <ServiceCall button.press (c:01G9HB3SK7QDRJ29GNVWSEW5KG): entity_id=['button.synchronize_devices']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1731, in catch_exceptionst_location_updates] Update Tesla l
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_servicet_location_updates] Update Tesla l
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(ead) [homeassistant.components.aut
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_serviceready running
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_callready running
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_callready running
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_callready running
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 500, check log for more info.

Is this something I have done wrong, or is something broken with Google right now?

Doing research I see similar errors from people who try to sync the devices, but in this case it makes the google integration unusable right now. Not just the sync operation.

EDIT: Just to clarify this was entirely working before, it suddenly broke and I didn’t change anything to break it.

Same problem here…

Getting exactly the same error

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/button/__init__.py", line 114, in _async_press_action
    await self.async_press()
  File "/usr/src/homeassistant/homeassistant/components/google_assistant/button.py", line 51, in async_press
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Unable to sync devices with result code: 500, check log for more info.

I’m having the same problem too. Were you guys able to fix this problem? Are we the only people having this problem? Isn’t anyone using google home with HA?

I also just started having this problem today. I wonder if something changed on Google’s end to cause this.

I also just started getting this issue today. Has anyone figured out the issue?

I am on the same boat.

https://homegraph.googleapis.com/v1/devices:requestSync failed: 500

Didnt change anything, except installing new releases of HA.

Dont know which release broke this, since I only notice this in 2022.9.6 and 2022.9.7 .

Home Assistant 2022.9.7
Supervisor 2022.09.1
Operating System 9.0
Frontend 20220907.2 - latest

I have gotten the issue in the last couple of days as well. Must be due to latest release.

ahh, it’s not just me then - we’ve been away, and I couldn’t work out if it were Google or Home Assistant that was broken… Will wait for a 2022.10.x release and see what happens (and keep the family at bay until then) :smiley:

Not sure if it is due to latest release since I had not updated since setting up the home assistant when the issue started.

There is also this reddit thread where the suggestion seems to be to switch from DuckDNS to cloudflare?

I have everything up to date.
It started about Zigbee2MQTT 1.27.xx It looked like MQTT: No ACK from MQTT server in 10 seconds about 1500 times per hour.
ZB2M 1.28.0-1 improved it, but since then voice control doesn’t work for me. No ACK from MQTT server in 10 seconds approx. only 70-150 times per hour. It looks like a communication problem between MQTT and ZB22M
Mostly:
Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 500
Sometimes Request for https://homegraph.googleapis.com/v1/devices:requestSync failed: 400
I didn’t see anything in the logs.
Google Home reports device offline. Sometimes after a while the devices are online …
In Google Home, devices sometimes catch on for a while. But mostly it ends up with an error:
something went wrong
I didn’t change anything anywhere in the google project.

Latest messages from the log:
Config entry ‘shellyem3-C8C9A3705CDF’ for shelly integration not ready yet: Timeout during device setup; Retrying in background
13:34:34 - (WARNING) config_entries.py
Request for https: // homegraph.googleapis. com/v1/devices:requestSync failed: 500
13:34:27 - (ERROR) Google Assistant
No ACK from MQTT server in 10 seconds (mid: 391)
13:33:52 - (WARNING) MQTT - message first appeared at 13:33:52 and appears 43 times
Setup of sensor platform energy is taking over 10 seconds.
13:33:30 - (WARNING) Sensor - message first appeared at 13:33:30 and is displayed 3 times
Setup of button platform google_assistant is taking over 10 seconds.
13:33:30 – (WARNING) Button
Config entry ‘shellyem3-C8C9A3705CDF’ for shelly integration not ready yet: Timeout during device setup; Retrying in background
13:33:30 - (WARNING) config_entries.py
Setup of input_number is taking over 10 seconds.
13:33:30 - (WARNING) runner.py - message first appeared at 13:33:30 and appears 2 times

Duck DNS allows me to access HA from my phone. Sometimes it falls out, but everything can be controlled. I have no idea if it’s related.

ok, I was able to get google assistant to partially work.
Apparently Google has changed some things. There is this page explaining the deprecation of Nest oauth authentication method and that it would not work after october 3, 2022 (for older users having the old oauth). I think something similar is going on with the assistant integration as well. In my case both Google Nest and Google Assistant integrations failed almost the same time.

Anyways, the solution is to remove it and do the whole linking procedure from the beggining. I was able to get Nest to work pretty easily however it is still not working like it used to. Forexample It does not start working right away after a reboot.

I also tried the same thing with google assistant integration. Also it is partially working now similar to nest. I can control the exposed HA devices from google home but I have to click 2 times. Forexample I can turn on a HA light from the google home app but on the first click the light turns on but the button still shows the light as off. then I click a second time, then the button updates the light status to on. and the same thing applies to turning off as well.

I believe both integrations needs an update after whatever changes google made.

Also the ‘Synchronize Devices’ button on the addd-on still results with:
Failed to call service button/press. Unable to sync devices with result code: 403, check log for more info.
But at least I have a partially working google home integration now.

I hope this helps someone.

I believe this is the document from google that explains that old authntications will fail after october 3rd, 2022.

I think these two threads are about the same thing.

I’m having these same errors, constantly. I’m so tired of the way Google is setup through HA it’s about ready to go in the trash and be replaced by Echos.