n8n errors / Connectivity
socket hang up
Cause
The remote server closed the TCP connection mid-transfer, often when n8n is behind a corporate proxy or the API drops long-lived connections.
Fix
Behind a corporate proxy, set HTTPS_PROXY/HTTP_PROXY and bootstrap global-agent so Node routes through the proxy; set NO_PROXY for localhost. If intermittent, enable 'Retry On Fail' on the node. On Windows installs, use a .env file with dotenv-cli rather than shell 'set' so variables persist.
Part of the Automation Error Index — n8n errors: browse all.
Hitting an automation error we have not covered?
AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.
Describe the problem