Outlookgooglecalendarsync: Unable to connect to the Google calendar (oauth2.googleapis.com)

Created on 23 Sep 2020  Â·  4Comments  Â·  Source: phw198/OutlookGoogleCalendarSync

Hi,

OGCS Version: v2.8.4.0 (last alpha)
Edition: Installed (C:\Users\…)
Sync Direction: O->G (default mailbox)

Bug Description
Unable to connect to the Google calendar
Code: 0x80131500;-2146233088
+
Unable to resolve oauth2.googleapis.com
Code: 0x80131509;-2146233079
Sync encountered a problem and did not complete successfully.

Steps to Reproduce the Issue
Automatic sync or manual sync.
Same error any time (109 consecutive syncs failed)

Any other information
If I disconnect, reconnect my google account and retrieve calendars again, it works for a few days and then same issue.
Tried on several location (with or without proxy, VPN, etc.), tried to reinstall OGCS.
Timezone DB : 2020a
I had the same issue with 2.8.0 version (beta, stable)

Extract from log (last sync)

2020-09-23 12:19:30,834 DEBUG  1 OutlookGoogleCalendarSync.Console [0] -  Sync version: 2.8.4.0
2020-09-23 12:19:30,834 DEBUG  1 OutlookGoogleCalendarSync.Console [0] -  Sync started at 23/09/2020 12:19:30
2020-09-23 12:19:30,834 DEBUG  1 OutlookGoogleCalendarSync.Console [0] -  Syncing from 08/09/2020 to 23/12/2020
2020-09-23 12:19:30,834 DEBUG  1 OutlookGoogleCalendarSync.Console [0] -  Outlook → Google
2020-09-23 12:19:31,135 DEBUG  1 OutlookGoogleCalendarSync.Telemetry [0] -  Retrieving URL: https://www.google-analytics.com/collect?v=1&t=event&tid=UA-19426033-4&aip=1&cid=19d7d93fca023322212bc254371b903a&ec=ogcs&ea=sync&el=calendar
2020-09-23 12:19:31,150 WARN  1 OutlookGoogleCalendarSync.OGCSexception [0] -  Not able to retrieve Google calendar's global timezone
2020-09-23 12:19:31,150 ERROR  1 OutlookGoogleCalendarSync.OGCSexception [0] -  System.Net.Http.HttpRequestException: Une erreur s'est produite lors de l'envoi de la demande.
2020-09-23 12:19:31,150 ERROR  1 OutlookGoogleCalendarSync.OGCSexception [0] -  Code: 0x80131500;-2146233088
2020-09-23 12:19:31,150 ERROR  1 OutlookGoogleCalendarSync.OGCSexception [0] -  InnerException:-
2020-09-23 12:19:31,150 ERROR  1 OutlookGoogleCalendarSync.OGCSexception [0] -  System.Net.WebException: Le nom distant n'a pas pu être résolu: 'oauth2.googleapis.com'
2020-09-23 12:19:31,150 ERROR  1 OutlookGoogleCalendarSync.OGCSexception [0] -  Code: 0x80131509;-2146233079
2020-09-23 12:19:31,150 WARN  1 OutlookGoogleCalendarSync.Telemetry [0] -  Failed to access URL https://www.google-analytics.com/collect?v=1&t=event&tid=UA-19426033-4&aip=1&cid=19d7d93fca023322212bc254371b903a&ec=ogcs&ea=sync&el=calendar
2020-09-23 12:19:31,150 INFO  15 OutlookGoogleCalendarSync.Console [0] -  Finding Calendar Entries
2020-09-23 12:19:31,150 FAIL  1 OutlookGoogleCalendarSync.Telemetry [0] -  Le nom distant n'a pas pu être résolu: 'www.google-analytics.com'
2020-09-23 12:19:31,166 INFO  15 OutlookGoogleCalendarSync.Console [0] -  Scanning Outlook calendar...
2020-09-23 12:19:31,821 INFO  15 OutlookGoogleCalendarSync.Console [0] -  56 Outlook calendar entries found.
2020-09-23 12:19:31,906 INFO  15 OutlookGoogleCalendarSync.Console [0] -  Scanning Google calendar...
2020-09-23 12:19:32,206 DEBUG  15 OutlookGoogleCalendarSync.GoogleOgcs.Calendar [0] -  Retrieving all events from Google: 08/09/2020 -> 23/12/2020
2020-09-23 12:19:32,206 FAIL  15 OutlookGoogleCalendarSync.OGCSexception [0] -  System.Net.Http.HttpRequestException: Une erreur s'est produite lors de l'envoi de la demande.
2020-09-23 12:19:32,222 FAIL  15 OutlookGoogleCalendarSync.OGCSexception [0] -  Code: 0x80131500;-2146233088
2020-09-23 12:19:32,222 FAIL  15 OutlookGoogleCalendarSync.OGCSexception [0] -  InnerException:-
2020-09-23 12:19:32,222 ERROR  15 OutlookGoogleCalendarSync.OGCSexception [0] -  System.Net.WebException: Le nom distant n'a pas pu être résolu: 'oauth2.googleapis.com'
2020-09-23 12:19:32,222 ERROR  15 OutlookGoogleCalendarSync.OGCSexception [0] -  Code: 0x80131509;-2146233079
2020-09-23 12:19:32,592 DEBUG  15 OutlookGoogleCalendarSync.Console [0] -  The following error was encountered during sync:-
2020-09-23 12:19:32,592 DEBUG  15 OutlookGoogleCalendarSync.Console [0] -  ERROR: Unable to connect to the Google calendar. Please try again. Le nom distant n'a pas pu être résolu: 'oauth2.googleapis.com'
2020-09-23 12:19:32,839 ERROR  1 OutlookGoogleCalendarSync.Console [0] -  Sync encountered a problem and did not complete successfully.
2020-09-23 12:19:32,839 ERROR  1 OutlookGoogleCalendarSync.Console [0] -  109 consecutive syncs failed.

Thank you very much for your work.
Amaury

bug more info needed old release

All 4 comments

Sorry for the delay in picking this up. Are you still getting this on v2.8.6? Does the problem even persist if you restart OCGS? Or the only solution is to reconnect the Google account?

Hi,

No problem. This bug persisted with 2.8.5.0.
I had to disconnect and reconnect to my Google account, from time to time (sometimes it worked fine for more than a week)

Just updated my PC to 2.8.6.0 and first sync was ok.
I will get back to you (with logs) if necessary.

Regards.

Is issue #48 relevant at all? Worth testing if the workaround there helps (toggling Proxy to "None" and back to "Inherit from IE")?

Hi,

Bug solve with 2.8.6.0,

Was this page helpful?
0 / 5 - 0 ratings