question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Calendar API disabled error message can be improved

See original GitHub issue

The problem

After upgrading to 2022.11.2 the Google Calendar integration stopped functioning. I deleted the integration and attempted to reinstall it, however, now it gets to the last step (Google has me allow access for HA) and returns just “Error” - no other message.

I we to another instance of HA I have running on 2022.11.0 and the integration was functioning properly. I removed and reinstalled the integration with no problem. I then updated this instance to 2022.11.2 and found the same issue - the integration was not functioning, and deleting and attempting a reinstall failed with the same ‘Error’.

What version of Home Assistant Core has the issue?

2022.11.2

What was the last working version of Home Assistant Core?

2022.11.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Google Calendar

Link to integration documentation on our website

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

Diagnostics information

Can not provide diagnostics information as the integration will not install.

Example YAML snippet

None as the integration will not install.

Anything in the logs that might be useful for us?

Not that I can see.  However, I am not versed in Home Assistant OS logs outside of the Log section in the UI under settings.  I will be happy to provide anything you need if you can direct me to the location of log files you require.

Additional information

No response

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
osono-designcommented, Nov 23, 2022

Error log reads: “Error reading primary calendar: Error from API: 403: PERMISSION_DENIED: Google Calendar API has not been used in project [XXXXX] before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=[XXXXX] then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.: Forbidden”

The Google Calendar API has not been automatically enabled and in Cloud Console API Library I had to enable it manually. This resolved the issue.

1reaction
tsj-hassiocommented, Nov 17, 2022

Still not working in 2022.11.3

It worked after the update in both of my Home Assistant instances.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handle API errors | Google Calendar
The Calendar API returns two levels of error information: HTTP error codes and messages in the header; A JSON object in the response...
Read more >
Error Migrating Google Workspace to O365 - Calendar API ...
Means that the Google calendar api has not been enabled in your app or its disabled. Here are a few things to check...
Read more >
Errors | Cloud APIs - Google Cloud
This chapter provides an overview of the error model for Google APIs. It also provides general guidance to developers on how to properly...
Read more >
unable to connect to the Google Calendar #1049 - GitHub
Something like this: "Message[Google Calendar API has not been used in project XXXXXXXXXXXXX before or it is disabled. Enable it by visiting https://console....
Read more >
Google Chrome Privacy Whitepaper
Here we're focusing on the desktop version of Chrome; ... To improve load times, the browser can be asked to prefetch links that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found