Intermittent ECONNRESET errors on Google Sheets/Drive nodes (self-hosted via Nginx on Windows)

I’m running a self-hosted instance of n8n on Windows with a custom domain proxied via Nginx. The Google Sheets node (and sometimes other Google nodes like Google Drive) randomly fails with the following error:

The connection to the server was closed unexpectedly, perhaps it is offline. You can retry the request immediately or wait and retry later.

It happens inconsistently — sometimes the workflow works, sometimes it fails. I’ve already:

  • Updated my credentials’ callback URL and webhook URL to use the custom domain.
  • Verified that internet is available.
  • Made sure n8n has valid Google OAuth credentials and .env is configured correctly.

Sometimes they work fine, sometimes they don’t. It’s inconsistent.


What is the error message?

"The connection to the server was closed unexpectedly, perhaps it is offline."
"read ECONNRESET"
"httpCode": "ECONNRESET"

Last node output

{
  "errorMessage": "The connection to the server was closed unexpectedly.",
  "errorDetails": {
    "rawErrorMessage": [
      "read ECONNRESET"
    ],
    "httpCode": "ECONNRESET"
  }
}

n8n Setup

  • n8n version: 1.93.0
  • Database: SQLite
  • Execution process: own
  • Running on: Windows (RDP)
  • Start method: npx n8n@latest
  • Reverse proxy: Nginx + SSL

I Think Since this is inconsistent behavior it can be many things (Unstable Internet Connection, …etc)
I Suggest you turn on “Retry on fail” under “Settings” tap to make sure in case of error, the node gets fired multiple times with a few seconds interval.

1 Like

Thanks, Lemme try that.