I have an HTTP request node that returns “Error - Socket Hang Up” about 1/3 of the time it runs (it runs every minute). It’s using a (paid) proxy service.
I’ve checked the logs with the proxy provider, and they say these requests are being fulfilled without error
I read in the forums here a bit and tried sending the request (using the proxy) on my server with CURL, to see if it works that way, which it does. I’ve sent it over and over and over again with CURL to try and replicate the “Socket Hang Up” but it doesn’t ever produce an error or fail to complete. So the proxies appear to be working correctly, as reported by the proxy provider, and I only encounter the error within N8N.
It only errors some of the time, so I am confident the request and proxy is set up correctly in N8N otherwise it would error all the time.
The other odd thing is that I don’t get this error when doing the same HTTP request without the proxy. This points to it being a proxy problem, but with my testing above never erroring when using the proxy manually with CURL on the same server, I don’t think it is.
What else could I do to try and debug this?
What is the error message (if any)?
ERROR: socket hang up
Details
Time
3/20/2024, 12:00:28 PM
Item Index: 55
HTTP Code
rejected
Stack
NodeApiError: socket hang up
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1564:27)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:730:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20
Please share your workflow
Share the output returned by the last node
The error posted above.
Information on your n8n setup
- n8n version: 1.32.2
- Database (default: SQLite): Postgresql
- n8n EXECUTIONS_PROCESS setting (default: own, main): Default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux