HTTP requests failing after 2 connections

Describe the problem/error/question

The first node in my loop sends a HTTP request (note, I have added a 5 second delay between each request). The first two connections are successful. Then the third onwards gets a 403 error.

Important note: I am using N8N Hosted. I setup N8N self-hosted to see if the same issue, no issue, it runs all 76 connections successfully, even without a delay. My end server has no rate-limit, but we add a delay anyway. My software is set to allow connections from all the N8N Hosted IPs and my self-hosted instance too.

What is the error message (if any)?

message:403 - ""
name:AxiosError
stack:AxiosError: Request failed with status code 403\n    at settle (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12)........

Please share your workflow

I cannot as it contains lots of private information, credentials etc. However I have provided screenshots of the issue node, including first and third run, showing the successful response and error response.

Share the output returned by the last node


This is me making the same request on Postman, respose was 200 (success), tried rapidly clicking submit and using the exact same value as N8N used when it failed on the third loop too:

The error output:

message:403 - ""
name:AxiosError
stack:AxiosError: Request failed with status code 403\n    at settle (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/settle.js:19:12)\n    at RedirectableRequest.handleResponse (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/adapters/http.js:547:9)\n    at RedirectableRequest.emit (node:events:530:35)\n    at RedirectableRequest._processResponse (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/follow-redirects/index.js:409:10)\n    at ClientRequest.RedirectableRequest._onNativeResponse (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/follow-redirects/index.js:102:12)\n    at Object.onceWrapper (node:events:633:26)\n    at ClientRequest.emit (node:events:518:28)\n    at HTTPParser.parserOnIncomingClient (node:_http_client:716:27)\n    at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)\n    at Socket.socketOnData (node:_http_client:558:22)\n    at Socket.emit (node:events:518:28)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Socket.Readable.push (node:internal/streams/readable:392:5)\n    at TCP.onStreamRead (node:internal/stream_base_commons:189:23)\n    at TCP.callbackTrampoline (node:internal/async_hooks:130:17)\n    at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/axios/lib/core/Axios.js:45:41)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at invokeAxios (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:313:10)\n    at proxyRequestToAxios (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:695:20)\n    at Object.request (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_46e522f8a77ed5eccc0991bfcca21502/node_modules/n8n-core/src/execution-engine/node-execution-context/utils/request-helper-functions.ts:1740:4)
code:ERR_BAD_REQUEST
status:403

Information on your n8n setup

  • n8n version: 1.104.2
  • Database (default: SQLite): Default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Manual trigger
  • Running n8n via (Docker, npm, n8n cloud, desktop app): N8N Cloud
  • Operating system: N8N Cloud (I presume Linux).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.