How can I get error message in webhook?

Describe the problem/error/question

How can I get error message in webhook?

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.97.1
  • **Database (default: SQLite):SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • Operating system:

Options .
set Always Output Data On
And
On Error - Continue

Then capture the response by adding new node (IF) to check if any static item exeists or not . For example ID . If yes then continue if not then through error

On you node which errors out, go to Settings tab and then set the On Error action to `Continue (using error output)

This will create an additional error tail on the node which you can use to link to your Respond to Webhook node with the error message

It should process in js code like below

if (!this.continueOnFail()) {
    throw error;
}
return {};
1 Like

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