Google Calendar Integration - Unable to authenticate with API: 401, message='Unauthorized'

Hi!

Not sure what is going on, but after following some instructions to integrate my google calendar into HA, it works for like an hour, then it doesn’t work anymore. Tried it twice.

Unable to connect to Google: Unable to authenticate with API: 401, message='Unauthorized', url=URL('https://www.googleapis.com/calendar/v3/calendars/f...[][email protected]/events?maxResult=100&singleEvents=true&orderBy=startTime&fields=kind,nextPageToken,nextSyncToken,items(id,summary,description,location,start,end,transparency)&timeMin=2022-05-01T06:00:00%2B00:00&timeMax=2022-06-12T06:00:00%2B00:00')

3:34:54 PM – (ERROR) Google Calendars - message first occurred at 3:34:24 PM and shows up 48 t

when it happens, I click on calendar and its just a blank calendar.

Any idea why it works and then it doesn’t work?

Same here.

2022-05-13 01:20:34 ERROR (MainThread) [homeassistant.components.google.calendar] Unable to connect to Google: Unable to authenticate with API: 401, message='Unauthorized', url=URL('https://www.googleapis.com/calendar/v3/calendars/addressbook%[email protected]/events?

It was working just fine when I first integrated it then it stopped working.

System: Home Assistant OS 7.6 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2022.5.3
Home Assistant Supervisor: 2022.05.1

@Cloudhidden

Yes, this is what I experienced also. BUT, it started working on its own after about a day or two. It’s still working as we speak.

I opened up a issue with HA about it.

Please report it here. Allen is quick to respond and there are some instructions listed.