agentsclimarketplace

N8n errors execution

Skill Impertio-Studio/n8n-Claude-Skill-Package/skills/source/n8n-errors/n8n-errors-execution

21 deterministic Claude AI skills for n8n v1.x workflow automation

Install
npx -y skills add Impertio-Studio/n8n-Claude-Skill-Package --skill n8n-errors-execution

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when debugging workflow execution failures or implementing error recovery in n8n. Prevents silent failures by enforcing the 4 error handling patterns. Covers node failures, timeout handling, continueOnFail pattern, Error Trigger node, error workflows, retry on fail configuration, Stop And Error node, and execution data inspection. Keywords: n8n, error, execution, retry, timeout, failure, recovery, debug, test execution, step by step, why did it fail, workflow stopped, node error, retry failed..

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

8.8 KB, as published. Nobody here has run it

n8n Error Handling & Execution Failures

Quick Reference

MechanismScopePurposeConfiguration
Error WorkflowWorkflow-levelCatch any unhandled failure, notify/recoverWorkflow Settings > Error Workflow
continueOnFailPer-nodeAllow workflow to continue despite node failureNode Settings > Continue On Fail
Retry on FailPer-nodeAutomatically retry transient failuresNode Settings > Retry On Fail
Stop And ErrorExplicit nodeDeliberately fail workflow with custom messageAdd Stop And Error node

Error Handling Decision Tree

Workflow execution fails
├── Is the failure transient (API timeout, rate limit)?
│   ├── YES → Enable Retry on Fail on that node
│   │         Config: maxTries=3, waitBetweenTries=1000ms
│   │         └── Still fails after retries? → Falls to Error Workflow
│   └── NO → Continue below
├── Should the workflow continue despite this node failing?
│   ├── YES → Enable continueOnFail on that node
│   │         └── Check $json.error in next node for fallback logic
│   └── NO → Continue below
├── Is this a business logic validation failure?
│   ├── YES → Use Stop And Error node to fail explicitly
│   │         └── Error Workflow receives the custom error message
│   └── NO → Continue below
└── Unhandled failure
    └── ALWAYS configure an Error Workflow to catch it
        └── Error Trigger → Slack/Email/Database notification

The 4 Error Handling Patterns

Pattern 1: Error Workflow with Notifications

When: ALWAYS set up as a safety net for every production workflow.

Main Workflow → (fails) → Error Trigger → Slack/Email notification

Setup:

  1. Create a new workflow with an Error Trigger node as the start
  2. Add notification nodes (Slack, Email, HTTP Request to logging service)
  3. In the main workflow, open Workflow Settings
  4. Select the error workflow from the Error Workflow dropdown
  5. One error workflow can serve multiple production workflows

Pattern 2: Graceful Degradation (continueOnFail)

When: The failing node is non-critical and a fallback value is acceptable.

HTTP Request (continueOnFail=true) → IF ($json.error) → Fallback path
                                                       → Success path
  • Enable Continue On Fail in the node's Settings tab
  • The next node receives error data in $json.error instead of normal output
  • ALWAYS add an IF node after to branch on error vs success

Pattern 3: Retry with Fallback

When: The node calls an external API that may have transient failures.

API Call (retryOnFail=true, maxTries=3) → (still fails) → Error Workflow
  • Enable Retry On Fail in the node's Settings tab
  • Configure Max Tries (default: 3) and Wait Between Tries (default: 1000ms)
  • If all retries fail, the error propagates to the Error Workflow

Pattern 4: Deliberate Failure (Stop And Error)

When: Custom validation detects invalid data that MUST stop execution.

IF (invalid data) → Stop And Error → triggers Error Workflow
  • Add a Stop And Error node after your validation logic
  • Set a descriptive error message explaining what failed
  • The Error Workflow receives this message in the error data

Diagnostic Table: Symptom > Cause > Fix

SymptomCauseFix
Workflow stops at node with red XNode threw unhandled errorEnable continueOnFail OR fix the node config
"Workflow could not be started"Trigger node misconfigured or credentials invalidCheck trigger node settings and credential validity
Workflow hangs indefinitelyNo execution timeout configuredSet EXECUTIONS_TIMEOUT env var or per-workflow timeout
Error workflow never firesError workflow not assigned in Workflow SettingsOpen Workflow Settings > select Error Workflow
Error workflow fires but no dataError Trigger node missing in error workflowALWAYS start error workflow with Error Trigger node
Node retries but still failsTransient issue persists beyond max retriesIncrease maxTries or waitBetweenTries; check upstream service
$json.error is undefinedcontinueOnFail not enabled on the failing nodeEnable Continue On Fail in node Settings
Execution timeout reachedWorkflow exceeds configured timeout limitIncrease EXECUTIONS_TIMEOUT or optimize workflow
"Workflow was stopped manually"User or API stopped executionCheck execution logs; verify no automated stop triggers
Node shows "No input data"Previous node produced empty outputAdd IF node to check for empty data before processing
Credentials error on active workflowCredentials expired or were deletedRe-authenticate credentials; check credential sharing
Sub-workflow execution failsCaller policy blocks executionSet N8N_WORKFLOW_CALLER_POLICY_DEFAULT_OPTION correctly

Error Workflow Data Structure

The Error Trigger node receives this data when an error workflow fires:

{
  "execution": {
    "id": "231",
    "url": "https://n8n.example.com/execution/231",
    "retryOf": null,
    "error": {
      "message": "The error message",
      "stack": "Error stack trace..."
    },
    "lastNodeExecuted": "HTTP Request",
    "mode": "trigger"
  },
  "workflow": {
    "id": "1",
    "name": "My Workflow"
  }
}

Key fields:

  • execution.error.message — The actual error description
  • execution.lastNodeExecuted — Which node failed
  • execution.id — Link back to the failed execution for inspection
  • workflow.name — Which workflow triggered the error

Execution Timeout Configuration

LevelSettingDefaultDescription
Instance-wideEXECUTIONS_TIMEOUT-1 (disabled)Default timeout for ALL workflows (seconds)
Instance maxEXECUTIONS_TIMEOUT_MAX3600Maximum timeout any workflow can set (seconds)
Per-workflowWorkflow Settings > TimeoutInherits instance defaultOverride for specific workflow

ALWAYS set EXECUTIONS_TIMEOUT in production to prevent runaway executions.

Common Execution Errors

Authentication & Credentials

  • "401 Unauthorized" — Credential expired or revoked. Re-authenticate in n8n.
  • "403 Forbidden" — API key lacks required permissions. Check scopes.
  • "ECONNREFUSED" — Target service is down or URL is wrong. Verify host/port.

Data & Processing

  • "Cannot read property of undefined" — Expression references missing field. Use $json?.field optional chaining.
  • "Too many items" — Node received more items than it can process. Add a Limit node upstream.
  • "Payload too large" — Request exceeds N8N_PAYLOAD_SIZE_MAX (default 16MB). Reduce payload or increase limit.

Execution Environment

  • "Execution was stopped because it reached the timeout" — Increase timeout or optimize workflow.
  • "Worker timed out" — In queue mode, worker exceeded task runner timeout. Increase N8N_RUNNERS_TASK_TIMEOUT.
  • "Out of memory" — Workflow processes too much data in memory. Use streaming or split into batches.

Rules

  • ALWAYS configure an Error Workflow for every production workflow
  • ALWAYS start error workflows with the Error Trigger node
  • ALWAYS set EXECUTIONS_TIMEOUT in production environments
  • ALWAYS add an IF node after a continueOnFail node to handle the error branch
  • NEVER assume retries will solve non-transient errors (auth failures, schema mismatches)
  • NEVER use continueOnFail on critical nodes where failure means data is invalid
  • NEVER leave production workflows without error handling — silent failures cause data loss
  • ALWAYS test error workflows by deliberately triggering them (use Stop And Error node)

Reference Files

  • methods.md — Error handling nodes, continueOnFail API, retry configuration
  • examples.md — Error workflow setup, continueOnFail patterns, retry patterns
  • anti-patterns.md — Error handling mistakes to avoid

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.