Unable to sync with Gmail while running EventRSVPTask


Mailspring is unable to sync my Gmail account and running the EventRSVPTask. There seems to be something wrong while parsing a json message.

To Reproduce…

Steps to reproduce the behavior:

  1. Open Mailspring
  2. Wait for Gmail account to start syncing
  3. Wait for an error message to show
  4. Go to account settings
  5. Open the error detail log

Expected Behavior

No error while running EventRSVPTask.


  • OS and Version: Ubuntu 20.04
  • Installation Method: snap
  • Mailspring Version: 1.9.1

Additional Context

`131980 [2021-06-08 19:31:09.916] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 85668 - 86263, Heavy: false
131980 [2021-06-08 19:31:09.970] [foreground] [info] [local-655485b5-520c] Running EventRSVPTask performRemote:
131980 [2021-06-08 19:31:09.971] [foreground] [critical]

*** Mailspring Sync
*** A JSON exception occurred during program execution:
*** [json.exception.type_error.302] type must be string, but is null

Odd - I have three GMail accounts (one with a calendar and mail, two just mail) and all sync fine in Mailspring 1.9.1 on Kubuntu 20.10. I do get the occasional error that “one of your accounts is experiencing sync issues” but it’s always cleared on a retry.

You can (I think) control on the GMail side which data will sync on the account. You could try disabling calendar and task sync, to see whether that at least narrows down where the problem lies. Mailspring only uses the mail data at the moment anyway.

Seems rebuilding the cache fixed the issue. It was the only button I didn’t try yet…