Hi community ! Thanks by advance for your help !
Describe the problem/error/question
It is about error handling in a IA agent when one of the tools (Here HTTP Request tool) is not behaving as expected. I made a very simple workflow to illustrate the situation (See below)
I’m using a IA agent and it has an HTTP Request tool.
When the tool is used by the agent and the request fails (403 Unauthorized - 404 Not Found or 500 Server error), the workflow stops. If you look at the execution, the error is clear, if you click on the tool, the error can be read in the output section.
My problem is that I have found no way to continue the execution…
Since it is a workflow initiated by a user via a webhook, I would like to be able at least to respond with a technical error message. In my case the response to the client calling the workflow is HTTP 200 and the body response is empty.
Here is what I tried:
- In the settings of the IA agent, configure “On error” : “Continue” or “Continue with error output” → The workflow still stops abruptly
- In the workflow settings, configure an “Error Workflow” → It is never executed.
- Add to the “options - System Message” of the IA agent guidance to handle errors → The workflow still stops abruptly
It should be doable, I must be missing something…
A bad solution would be to rewrite the service the tool is calling to always answer HTTP 200 and provide an error code and an error message but it is ugly and it will not cover all the situations (service down for example).
I looked over the internet, through the documentation and asked Mistral about it and I haven’t found a good answer. If anyone has an idea, I would happily try !
Thanks !
What is the error message (if any)?
The connection cannot be established, this usually occurs due to an incorrect host (domain) value
Please share your workflow
Share the output returned by the last node
{
“errorMessage”: “The connection cannot be established, this usually occurs due to an incorrect host (domain) value”,
“errorDetails”: {
“rawErrorMessage”: [
“getaddrinfo ENOTFOUND unknown_address_in_th_web.com”,
“getaddrinfo ENOTFOUND unknown_address_in_th_web.com”
],
“httpCode”: “ENOTFOUND”
},
“n8nDetails”: {
“nodeName”: “Find a friend”,
“nodeType”: “n8n-nodes-base.httpRequestTool”,
“nodeVersion”: 4.4,
“itemIndex”: 0,
“time”: “02/04/2026 00:35:18”,
“n8nVersion”: “2.13.3 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeApiError: The connection cannot be established, this usually occurs due to an incorrect host (domain) value”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/HttpRequest/V3/HttpRequestV3.node.ts:809:16)“,
" at processTicksAndRejections (node:internal/process/task_queues:103:5)”,
" at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1043:8)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1222:11)”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1668:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@opentelemetry+exporter-trace-otlp_9f358c3eeaef0d2736f54ac9757ada43/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2313:11"
]
}
}
Information on your n8n setup
- n8n version: 2.13.3
- Database (default: SQLite): None
- n8n EXECUTIONS_PROCESS setting (default: own, main): Unknown
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system: Windows 11