Could not connect to Gmail

Problem

Could not connect to Gmail.

It can open the link in Chrome, and it can redirect to a success page Mailspring


But in the app, it says it has issue to login.

Usually Chrome should pop up a dialog to open related app to finish auth, but not for Mailspring.

Context

Reproduce when adding Gmail account

Email Provider

Gmail

Setup

  • OS and Version: macOS 15.2 (24C101)
    • Installation Method: Intel .zip
  • Mailspring Version: 1.14.0

I think the reason is that it Mailspring doesn’t support proxy now.

I checked dev console in Mailspring, it shows:

FetchError: request to https://www.googleapis.com/oauth2/v4/token failed, reason: Client network socket disconnected before secure TLS connection was established
    at ClientRequest.<anonymous> (/Applications/Mailspring.app/Contents/Resources/app.asar/node_modules/node-fetch/lib/index.js:1501:11)
    at ClientRequest.emit (node:events:518:28)
    at ClientRequest.emit (node:domain:488:12)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:518:28)
    at TLSSocket.emit (node:domain:488:12)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)