Google Calander Response error:400

Hi,

Hope someone can help or point me into the right direction.
Google calander intergation stopped working since today and I dont know why:

System:

arch x86_64
chassis vm
dev false
docker true
docker_version 19.03.8
hassio true
host_os HassOS 4.11
installation_type Home Assistant OS
os_name Linux
os_version 5.4.50
python_version 3.7.7
supervisor 228
timezone Europe/Berlin
version 0.112.4
virtualenv false

image

Logger: homeassistant.components.calendar
Source: components/google/__init__.py:349
Integration: Kalender (documentation, issues)
First occurred: 22:20:26 (6 occurrences)
Last logged: 22:20:34

google: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 319, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 466, in async_device_update
    self.update  # type: ignore
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 106, in update
    self.data.update()
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 239, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 169, in update
    service, params = self._prepare_query()
  File "/usr/src/homeassistant/homeassistant/components/google/calendar.py", line 132, in _prepare_query
    service = self.calendar_service.get()
  File "/usr/src/homeassistant/homeassistant/components/google/__init__.py", line 349, in get
    "calendar", "v3", http=http, cache_discovery=False
  File "/usr/local/lib/python3.7/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 237, in build
    raise e
  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 229, in build
    requested_url, discovery_http, cache_discovery, cache)
  File "/usr/local/lib/python3.7/site-packages/googleapiclient/discovery.py", line 279, in _retrieve_discovery_doc
    raise HttpError(resp, content, uri=actual_url)
googleapiclient.errors.HttpError: <HttpError 429 when requesting https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest returned "Too Many Requests">

I’ve tried to re-authorize by deleting the google.token, authorize process worked well but the issue stayed.

The last line is very suspicious
https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest returned "Too Many Requests">
But I don’t know how to fix it.

would be nice if someone can help.

Thanks,

Known issue, sadly. Looks to be a known issue that’ll require a change in the integration.

2 Likes

Thanks for your reply, I will follow up on GitHub.

This require change in the integration is also affecting users who wants to setup google calendar for the first time as well?

Based on the GitHub replies: yes. https://github.com/home-assistant/core/issues/37874#issuecomment-658979533

Currently it’s working for me again.

1 Like

Same here :crossed_fingers: