Hi everyone,
I’m running into a problem with error handling in workflows that start with a Webhook node.
-
If I set nodes to Stop Workflow on Error, the workflow fails immediately and I cannot return any response to the webhook caller. The client just hangs without a response.
-
If I set nodes to Continue on Fail (using error output), then both the error path and the success path continue. This means even if the node fails and I send an error response, the workflow continues running down the success branch, which is not what I want.
-
I also tried using a dedicated Error Workflow, but since that doesn’t have access to the original webhook, I can’t send a response back to the client from there either.
What I want is:
-
If any node fails, I want to stop the entire workflow.
-
At the same time, I want to return an error message (JSON) to the webhook caller.
Right now the only option I see is to build lots of IF checks after each node to detect errors manually, but that feels messy and unscalable. Is there a clean way to do this in n8n?
Thanks in advance!