Fetching E-Mails from Gmail fails

Problem

For quite some time now, I can’t access from my Gmail account specifically. Other E-Mail proverders work just fine but it always throws an error about how it wasn’t able to sync Mailspring with my Gmail account. Re-connecting the account doesn’t do anything. The only hints I can give is this error log (personal email redacted:

21112 [2026-04-04 13:31:09.699] [main] [info] Identity created at 1775302269 - using ID Schema 1
21112 [2026-04-04 13:31:09.700] [main] [info] ------------- Starting Sync (example@gmail.com) ---------------
21112 [2026-04-04 13:31:09.704] [metadata] [info] Metadata sync disabled, not logged in.
21112 [2026-04-04 13:31:13.705] [background] [info] Fetching XOAuth2 access token (imap) for b50cd582
21112 [2026-04-04 13:31:13.893] [background] [critical] 
***
*** Mailspring Sync 
*** An exception occurred during program execution: 
*** {"debuginfo":"","key":"URL using bad/illegal format or missing URL","offline":false,"retryable":false,"what":"Unknown exception"}
***

Email Provider

Gmail

Setup

  • OS and Version: Windows 10 22H2
    • Installation Method: Installer over the Website
  • Mailspring Version: 1.19.0-29769fad