n8n 错误分支与重试设计
原名:n8n-error-handling
整理节点错误输出、失败通知和 API 错误响应,避免静默失败。
中文 Skills 技能说明
定时流程失败却没有提醒时,可先检查错误分支是否真正连通。提供工作流、失败样本、接口响应约定和业务副作用,技能整理 onError、错误输出、工作流级异常处理与有限重试,交付流程改动草稿和验证清单。需要已有 n8n 实例及相应连接工具;软件许可、托管与账号另行核对。重试前区分可恢复错误与未知外部结果,支付、发送和写库不能盲目重做;日志脱敏,失败通知与重试上限由负责人确定,再在测试环境演练。
上游能力依据
上游原始适用说明:Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a scheduled or unattended workflow, or any path where a silent failure would drop user-visible work — and whenever the user mentions error handling, onError, continueErrorOutput, error branches/outputs, retries, retryOnFail, Respond to Webhook status codes, 4xx/5xx, Error Trigger, or "my workflow fails silently". Covers per-node error outputs and wiring, retry/self-healing, error-trigger workflows, and 4xx/5xx response shapes.
上游 SKILL.md 主要章节(保留原文标题):
- When you actually need this
- The #1 silent trap: per-node error output is a TWO-step setup
- Doing both with n8nupdatepartialworkflow
- Failures the error output never sees
- Self-healing first: retryOnFail before you wire error paths
- API workflows: the canonical shape
- Input validation: conditions on the canvas
- Response shapes: map cause → status code
- Workflow-level error workflow (the catch-all)
- What's NOT available via the community MCP
使用边界
先核对运行环境、账号、区域、依赖和最小权限。创建资源、改配置、发布服务或产生费用前必须让使用者确认。
作者、翻译与许可证
- 原作者
- Romuald Członkowski 与 n8n-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/czlonkowski/n8n-skills/tree/e037563e101749e630e6688d121d04529fe6ee7b/skills/n8n-error-handling
适用范围
平台:linux、macos、windows;标签:MCP 与工具、n8n 错误分支与重试设计、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。