Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

n8n-error-handling

Skill by czlonkowski

Wires n8n workflows so failures are loud, structured, and recoverable. It is for builders of webhook, API, scheduled, and unattended n8n workflows where a silent failure would drop user-visible work.

  • Score 94
  • 23k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install n8n-error-handling

Built from the published package, never by AI.

git clone --depth 1 https://github.com/czlonkowski/n8n-mcp /tmp/n8n-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-mcp/data/skills/n8n-error-handling ~/.claude/skills/n8n-error-handling

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install n8n-error-handling in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant through error handling in n8n workflows. By default an n8n node that throws halts the whole workflow, which leaves callers with timeouts and operators with no alert. The skill explains how to set a node's onError to continueErrorOutput and wire its error output to a handler, then verify both halves of that setup.

It also covers retryOnFail for network nodes, so transient errors are retried before reaching error branches. For webhook workflows it maps failure causes to HTTP status codes, separating 4xx client errors decided upstream from 5xx errors that come from error outputs. It is written for anyone building unattended n8n workflows, such as webhook APIs, cron jobs, queue workers, or agent tools.

Written from the project's SKILL.md and checked against it.

What it can do

  • Per-node error outputsSets onError to continueErrorOutput and wires the error output so failures route to a handler.
  • Error output verificationChecks the node's onError value and the main[1] connection after a workflow update.
  • Retry configurationSets retryOnFail, maxTries, and waitBetweenTries on nodes that call network services.
  • Status code mappingMatches HTTP status codes such as 400, 401, 404, 429, 500, 502, 503, and 504 to failure causes.
  • Validation before workUses IF or Code nodes to check input and return a 400 response with the expected schema.
  • Error routing with SwitchClassifies error messages with a Switch and sends each class to a Respond to Webhook node with a fixed status.

What you need

  • A running n8n instance
  • n8n MCP tools such as n8n_update_partial_workflow and n8n_get_workflow
  • n8n version 2.38.5 was used for the verified behavior described

Try asking

  • Add error handling to my n8n webhook so failures return a 500 response
  • Set retryOnFail on the HTTP Request node in my workflow with 3 tries
  • Check that the error output of my HTTP node is wired to a handler

Good to know

  • Retry fires on any error and has no per-status-code filter.
  • maxTries caps at 5 and waitBetweenTries caps at 5000ms.
  • Error outputs do not catch JavaScript errors inside expressions or some rejected Python Code node runs.
  • The skill notes that validate_workflow does not detect a half-wired error output.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: data/skills/n8n-error-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • API_WORKFLOWS.md17 KB
  • ERROR_WORKFLOWS.md9 KB
  • NODE_ERROR_OUTPUTS.md8 KB
  • README.md8 KB
  • RESPONSE_SHAPES.md10 KB
Show all 6 files
  • SKILL.md21 KB

Alternatives to n8n-error-handling

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

n8n-error-handling: common questions

Why does my n8n workflow fail silently when a node errors?

Setting onError alone does not route errors anywhere. The error output must also be wired to a handler, otherwise error data is discarded and the run can show as succeeded.

Which HTTP status code should an n8n error response use?

The source says to match the status to the cause: 4xx for bad input or auth, and 5xx for unexpected failures or upstream errors. An error branch should set responseCode explicitly because it defaults to 200.

Does retryOnFail solve every transient n8n error?

No. The source says retry fires on any error, with at most 5 tries and a 5000ms wait cap, so persistent failures still reach the error output.

How do I install n8n-error-handling?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is n8n-error-handling free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is n8n-error-handling safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to n8n-error-handling?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

n8n-error-handling Install

Add to stack

Loading.