n8n-error-handling
Skill by czlonkowski
Teaches an AI assistant to wire n8n error handling so failures are loud, structured and recoverable. Built for webhook APIs, scheduled jobs, queue workers and agent tools where a silent failure would drop work.
Install n8n-error-handling
Built from the published package, never by AI.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.claude/skills && cp -r /tmp/n8n-skills/skills/n8n-error-handling ~/.claude/skills/n8n-error-handlingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/czlonkowski/n8n-skills /tmp/n8n-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/n8n-skills/skills/n8n-error-handling ~/.gemini/antigravity-cli/skills/n8n-error-handlingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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. It explains per-node error outputs, which need both onError set to continueErrorOutput and an error output wired to a handler. It also covers node-level retries with retryOnFail, error-trigger workflows, and response shapes that map each failure cause to a 4xx or 5xx status code.
The skill lists failures that an error output does not catch, such as JavaScript errors inside expressions, and advises guarding transformed data. It is aimed at people building webhook APIs, scheduled or unattended workflows, and agent tools, where a silent failure would drop user-visible work.
Written from the project's SKILL.md and checked against it.
What it can do
- Per-node error outputsSet onError to continueErrorOutput and wire the error output to a handler.
- Retry on failureSet retryOnFail, maxTries and waitBetweenTries on nodes that call network services.
- Error workflowCatch failures that escape per-node handling, such as timeouts or crashes between nodes.
- Input validationCheck required fields with IF or Code nodes and return 400 responses on bad input.
- Status code mappingMatch 4xx and 5xx responses to the cause of each failure.
- Error classificationRoute errors through a Switch to one Respond node per status code.
- Silent failure checksVerify both halves of an error wiring and guard data after transforms.
What you need
- Access to n8n workflow tools such as n8n_get_workflow and n8n_update_partial_workflow
Try asking
- Add error handling to my n8n webhook so failures return a 500 JSON body
- Set up retries on my HTTP Request node in n8n
- Check that my n8n HTTP node's error output is wired to a handler
Good to know
- Retry fires on any error, with no filter by status code.
- maxTries caps at 5 and waitBetweenTries caps at 5000 ms.
- Error outputs miss JavaScript errors inside expressions and some Python Code node rejections.
- Validation does not surface in validate_workflow, so a half-wired error output validates clean.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: 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 →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
n8n-error-handling: common questions
Why does my n8n workflow show success even when a node fails?
If onError is set but the error output is not wired, the error data is discarded and the run shows as succeeded. The skill says to wire main[1] to a handler and check both settings.
Which n8n failures does the error output not catch?
The skill names JavaScript errors inside expressions and some Python Code node rejections. It advises checking that transformed fields exist and sending misses down the error path.
Which status code should an n8n webhook return on error?
The skill maps causes to codes: 400 for validation, 401 for missing auth, 403 for forbidden, 404 for not found, 429 for rate limits, 500 for unknown errors, 502 for upstream errors and 504 for timeouts.
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 90 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.
