Gmail does not synchronize anymore

Description

Mailspring stopped synchronizing with Gmail.

To Reproduce…

Steps to reproduce the behavior:

  1. Setup Gmail account
  2. Wait for synchronization

Expected Behavior

Mails should be synchronized again

Screenshots

Setup

  • OS and Version: Ubuntu Linux 22.04
    • Installation Method: snapcraft
  • Mailspring Version: 1.10.8-8ea2a61f

Additional Context

Error logs

Mailspring Version: 1.10.8-8ea2a61f
Platform: linux
Account State: sync_error
Account Provider: gmail
IMAP Server: imap.gmail.com
SMTP Server: smtp.gmail.com
--------------------------------------------
22445 [2023-06-15 20:20:06.681] [background] [info] Fetching XOAuth2 access token (gmail) for yyyy
22445 [2023-06-15 20:20:06.853] [background] [info] Marking all folders as `busy`
22445 [2023-06-15 20:20:06.854] [background] [info] Syncing folder list...
22445 [2023-06-15 20:20:08.097] [background] [info] Syncing folder list...
22445 [2023-06-15 20:20:08.581] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 25529 - 30529, Heavy: false
22445 [2023-06-15 20:20:10.400] [foreground] [info] [local-4019a868-563e] Running EventRSVPTask performRemote:
22445 [2023-06-15 20:20:10.400] [foreground] [critical] 
***
*** Mailspring Sync 
*** A JSON exception occurred during program execution: 
*** [json.exception.type_error.302] type must be string, but is null
***

22473 [2023-06-15 20:20:10.528] [main] [info] Identity created at 1508582397 - using ID Schema 0
22473 [2023-06-15 20:20:10.529] [main] [info] ------------- Starting Sync (xxx@gmail.com) ---------------
22473 [2023-06-15 20:20:10.532] [metadata] [info] Metadata delta stream starting...
22473 [2023-06-15 20:20:13.532] [background] [info] Fetching XOAuth2 access token (gmail) for yyyy
22473 [2023-06-15 20:20:13.716] [background] [info] Marking all folders as `busy`
22473 [2023-06-15 20:20:13.716] [background] [info] Syncing folder list...
22473 [2023-06-15 20:20:15.072] [background] [info] Syncing folder list...
22473 [2023-06-15 20:20:15.648] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 25529 - 30529, Heavy: false
22473 [2023-06-15 20:20:17.567] [foreground] [info] [local-4019a868-563e] Running EventRSVPTask performRemote:
22473 [2023-06-15 20:20:17.567] [foreground] [critical] 
***
*** Mailspring Sync 
*** A JSON exception occurred during program execution: 
*** [json.exception.type_error.302] type must be string, but is null
***

22506 [2023-06-15 20:20:17.685] [main] [info] Identity created at 1508582397 - using ID Schema 0
22506 [2023-06-15 20:20:17.685] [main] [info] ------------- Starting Sync (xxx@gmail.com) ---------------
22506 [2023-06-15 20:20:17.689] [metadata] [info] Metadata delta stream starting...
22506 [2023-06-15 20:20:20.688] [background] [info] Fetching XOAuth2 access token (gmail) for yyyy
22506 [2023-06-15 20:20:20.863] [background] [info] Marking all folders as `busy`
22506 [2023-06-15 20:20:20.863] [background] [info] Syncing folder list...
22506 [2023-06-15 20:20:22.769] [background] [info] Syncing folder list...
22506 [2023-06-15 20:20:23.230] [background] [info] syncFolderUIDRange for [Gmail]/All Mail, UIDs: 25529 - 30529, Heavy: false
22506 [2023-06-15 20:20:24.494] [foreground] [info] [local-4019a868-563e] Running EventRSVPTask performRemote:
22506 [2023-06-15 20:20:24.495] [foreground] [critical] 
***
*** Mailspring Sync 
*** A JSON exception occurred during program execution: 
*** [json.exception.type_error.302] type must be string, but is null
***