personium / app-personium-calendar

Apache License 2.0
0 stars 8 forks source link

Fail to refresh token when it is not valid anymore #129

Open dixonsiu opened 5 years ago

dixonsiu commented 5 years ago

API

https://.../io_personium_demo_app-personium-calendar/SyncEngine/sync

Error message

"error": { 
    "errors": [ { "domain": "calendar", "reason": "fullSyncRequired", "message": "Sync token is no longer valid, a full sync is required.", "locationType": "parameter", "location": "syncToken" } ],
    "code": 410,
    "message": "Sync token is no longer valid, a full sync is required."
} 

How to reproduce

Modify the sync token to make it invalid.

dixonsiu commented 5 years ago

https://developers.google.com/calendar/v3/sync

dixonsiu commented 5 years ago

Hotfix

Before we implement the fix that can refresh the sync token internally, you can perform the following procedures (don't have to clear your DB) to refresh the sync token manually.

  1. Login in to HomeApp
  2. Launch Personiuim Calendar
  3. Ignore and close the Error dialog
  4. Open the Account page from the side menu
  5. Click Edit and then delete the Gmail account
  6. Click Add another account to re-add the Gmail account