Google calendar error connection

Hi

in the past the connection with google calendar work, but 3 days ago I have an error.
Can you help me to understand the problem?
This is the log:
2018-09-02 04:25:23 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall google.scan_for_calendars (c:39858cc5eb7740ed89678b0709bab4e6)>
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1125, in _event_to_service_call
await self._hass.async_add_executor_job(execute_service)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1122, in execute_service
service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/google.py”, line 202, in _scan_for_calendars
calendars = cal_list.list().execute()[‘items’]
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/_helpers.py”, line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/googleapiclient/http.py”, line 837, in execute
method=str(self.method), body=self.body, headers=self.headers)
File “/srv/homeassistant/lib/python3.5/site-packages/googleapiclient/http.py”, line 163, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/transport.py”, line 186, in new_request
credentials._refresh(orig_request_method)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/client.py”, line 756, in _refresh
self._do_refresh_request(http)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/client.py”, line 812, in _do_refresh_request
raise HttpAccessTokenRefreshError(error_msg, status=resp.status)
oauth2client.client.HttpAccessTokenRefreshError: invalid_client: Unauthorized
2018-09-02 04:25:25 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up platform google
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.5/asyncio/tasks.py”, line 400, in wait_for
return fut.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/google.py”, line 39, in setup_platform
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/google.py”, line 39, in
for data in disc_info[CONF_ENTITIES] if data[CONF_TRACK]])
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/google.py”, line 51, in init
super().init(hass, data)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/init.py”, line 89, in init
self.update()
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/init.py”, line 155, in update
if not self.data or not self.data.update():
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/init.py”, line 325, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/calendar/google.py”, line 112, in update
result = events.list(**params).execute()
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/_helpers.py”, line 133, in positional_wrapper
return wrapped(*args, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/googleapiclient/http.py”, line 837, in execute
method=str(self.method), body=self.body, headers=self.headers)
File “/srv/homeassistant/lib/python3.5/site-packages/googleapiclient/http.py”, line 163, in _retry_request
resp, content = http.request(uri, method, *args, **kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/transport.py”, line 186, in new_request
credentials._refresh(orig_request_method)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/client.py”, line 756, in _refresh
self._do_refresh_request(http)
File “/srv/homeassistant/lib/python3.5/site-packages/oauth2client/client.py”, line 812, in _do_refresh_request
raise HttpAccessTokenRefreshError(error_msg, status=resp.status)

Me too… Did you have any luck?

Did either of you get this fixed? I am having the same issue as well

Unfortunatly no. Noone have suggested some solution.
In my opinion the problem is about the token, but i haven’t understand how to solve.

I found a temporary work around.
With IFTTT read the google calendar and with a webhooks call i store the information from calendar (title, location, starts , ecc ) in input text variable in homeassist with a script.

See Google calendar problems