OutlookGoogleCalendarSync icon indicating copy to clipboard operation
OutlookGoogleCalendarSync copied to clipboard

Own Google OAuth API Token expire during sync

Open watercrossing opened this issue 3 years ago • 5 comments

Checklist:

  • [x] Upgrade to the latest release (alpha if available) latest release
  • [x] Reproduce the issue
  • [x] Complete the information below
  • [x] Provide your OGcalsync.log file (see how-to)

OGCS Version: v2.8.6.0 Edition: Installed Sync Direction: O->G

Bug Description
I am using my own Google OAuth API ClientID Secret. Everything works fine for a few weeks, but at some point the OAuth Token seems to expire during a sync. Only killing OGCS and restarting and subsequently reauthorising OGCS seems to work. This seems related to #1184, but perhaps it is another edge case that was not considered yet - the error log below certainly does not match the error log of #1184.

This has happened to me three times now, so it is definitely reoccuring.

Log output:

OGcalsync.log.2021-04-17-relevant.log

Steps to Reproduce the Issue

  1. use OGCS with your own Google OAuth API ClientID Secret?
  2. set sync interval to 30min?
  3. wait for several weeks?

watercrossing avatar Apr 27 '21 10:04 watercrossing

I think this is due to how you've configured your own API - have a look through the various postings on Stack Overflow. Also, Google Groups are even saying if your computer datetime is off compared to Google, this can cause it.

Also point 11 in this troubleshooting - have you/do you regularly change your Google password?

phw198 avatar May 05 '21 16:05 phw198

Sorry about my slow reply, I have tried a variety of different approaches but the bug always reoccurs after a few weeks. This of course makes testing rather slow. I tried:

  • making sure my system time is regularly synced - it is, and the error is not large
  • I have not changed my google password recently
  • I deleted the project and started from scratch. The next time I will take a series of screenshots...

This did not fix it. After a few weeks I am greeted with the following: sync-failed

It is not possible to close the Sync Failed dialogues. I have to kill the OGCS process, and on the next sync the browser opens and I have to re-authorize the app.

watercrossing avatar Jul 02 '21 09:07 watercrossing

Hey @phw198. The above issue has occured once again. Could you reopen this issue or should I open a new one?

watercrossing avatar Jul 18 '21 10:07 watercrossing

Hi @watercrossing - have you tried just using the default API keys? Just wondering if you experience the same issue, or whether it is specific to your own project API somehow...

phw198 avatar Jul 18 '21 11:07 phw198

I will switch back to the default API for a while and see what happens.

watercrossing avatar Jul 18 '21 13:07 watercrossing