Hey guys.
I’m having trouble uploading a PDF to a XERO invoice using an HTTP request in n8n.
Here’s what’s happening:
-
The HTTP node receives the binary, but the request just hangs and eventually times out after 5 minutes (n8n timeout).
-
XERO’s request history doesn’t show any incoming calls, even though my credentials are set up correctly in n8n.
-
The same request type works fine in Make and Postman, and I’m using the same n8n credential type as with other organizations where this works.
Could you help me figure out what’s going wrong? Any advice or tips would be much appreciated!
Thanks a lot!
The error:
“errorMessage”: “The connection was aborted, perhaps the server is offline”,
“errorDetails”: {
“rawErrorMessage”: [
“timeout of 300000ms exceeded”,
“timeout of 300000ms exceeded”
],
“httpCode”: “ECONNABORTED”
},
“n8nDetails”: {
“nodeName”: “Xero - Upload Attachment”,
“nodeType”: “n8n-nodes-base.httpRequest”,
“nodeVersion”: 4.2,
“itemIndex”: 0,
“time”: “2025-07-21, 12:00:48 p.m.”,
“n8nVersion”: “1.102.4 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The connection was aborted, perhaps the server is offline”,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1476:10)“,
" at ExecuteContext.requestWithAuthentication (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1762:11)”
]
}
}
Information on your n8n setup
- n8n version: 1.101.2
- Database (default: SQLite): SQLite
- Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
