Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to connect to the Google Calendar #1049

Closed
IanNettleton opened this issue Jul 28, 2020 · 7 comments
Closed

unable to connect to the Google Calendar #1049

IanNettleton opened this issue Jul 28, 2020 · 7 comments
Labels
duplicate Already covered by another issue

Comments

@IanNettleton
Copy link

📝 Use the below template to report your issue.
💡 Upgrade to the latest alpha release to check if the problem is already fixed.
📎 To aid investigation, provide your OGcalsync.log file (see instructions).


OGCS Version: v1.2.3.4
Installed or Portable: Installed

Problem Description
<unable to connect to the Google Calendar>

Steps to Reproduce the Issue

  1. <Update>

OGcalsync.log

Any other information
<Update here>

@IanNettleton
Copy link
Author

Problem started yesterday

@morphmkd
Copy link

I also had the same problem this morning. I managed to fix it by going to https://console.developers.google.com/apis/credentials and creating a new project (You can name the project as you wish). You then need to create a consent screen for the OAuth and then go to Credentials to create credentials for your computer. You then go back to the program (Outlook Google Calendar Sync) and enter the CLient ID and Secret that you just created in to Settings / Google tab (you need to click on Show advanced developer options).
Then when you try to sync you will see in the log a final requirement to enable the google calendar API. 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.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=XXXXXXXXXXXXX then..."
Go to the url, enable the API and that's it.

There is maybe a simpler solution for this but this is how I got it working.

Regards.

@phw198
Copy link
Owner

phw198 commented Aug 4, 2020

@IanNettleton Did this resolve itself? Quota wasn't be exhausted at that time and shouldn't have been rate limited.

However, stats are showing an odd sudden jump in errors listing calendar events between 03:00-10:00 for the 28-Jul:
image

I'm thinking Google had some transient problem...

@IanNettleton
Copy link
Author

IanNettleton commented Aug 5, 2020 via email

@phw198
Copy link
Owner

phw198 commented Aug 23, 2020

I think there is/was also an underlying problem, which has a possible fix posted over on #1053.

Will continue to track the issue on that ticket.

@phw198 phw198 closed this as completed Aug 23, 2020
@phw198 phw198 added the duplicate Already covered by another issue label Aug 23, 2020
@IanNettleton
Copy link
Author

IanNettleton commented Aug 24, 2020 via email

@chichaz
Copy link

chichaz commented Oct 8, 2021

I also had the same problem this morning. I managed to fix it by going to https://console.developers.google.com/apis/credentials and creating a new project (You can name the project as you wish). You then need to create a consent screen for the OAuth and then go to Credentials to create credentials for your computer. You then go back to the program (Outlook Google Calendar Sync) and enter the CLient ID and Secret that you just created in to Settings / Google tab (you need to click on Show advanced developer options). Then when you try to sync you will see in the log a final requirement to enable the google calendar API. 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.developers.google.com/apis/api/calendar-json.googleapis.com/overview?project=XXXXXXXXXXXXX then..." Go to the url, enable the API and that's it.

There is maybe a simpler solution for this but this is how I got it working.

Regards.

Thanks for this! I've gotten into your instructions, but am stuck getting OGC to authorize during "retrieve calendars." Google's giving me a "not authorized" error. I think I missed something in the API setup. What & where am I to authorize OGC Sync?

Google says:
The content in this section has been provided by the app developer. This content has not been reviewed or verified by Google.
If you’re the app developer, make sure that these request details comply with Google policies.
access_type: offline
response_type: code
redirect_uri: http://localhost:56384/authorize/
client_id: 250188496351-ms2q034p1r48nhk2ntt2jeq9f5mp9k33.apps.googleusercontent.com
scope: https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/userinfo.email openid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Already covered by another issue
Projects
None yet
Development

No branches or pull requests

4 participants