Calls to the n8n API now return "502 Bad Gateway — the service failed to handle your request."

Hello

I have a workflow on n8n A server that makes an HTTP request to an n8n B server every 30mins. It worked without issues.

But suddenly it stopped working two days ago.

n8n B server is accessible. I did not update n8n or the server or anything. Any idea why this would happen and how should I resolve it?

Thanks.

Bad gateway - the service failed to handle your request
502 - “”

NodeApiError: Bad gateway - the service failed to handle your request at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:780:15) at processTicksAndRejections (node:internal/process/task_queues:105:5) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11

Hey @Blueli! Hope you are doing well! Are you trying to hit a public API? I would suggest to try a couple of things:

1.- Try to execute the request directly from curl or Postman to verify if the service it’s available

2.- Verify if you had an increment of your requests

Happy to read your comments!

1 Like

Sorry for late reply. I forgot to check this issue…
It was so weird. I have not done anything. after updated to the lastest version n8n. The issue seem to be gone….

1 Like

Glad to hear that @Blueli !! Could you please mark your last message as solution in case someone else face the same problem?!

Thanks a lot :clinking_beer_mugs: !!

1 Like

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