How to Fix Silent Green Failures in n8n (Continue on Fail & LLM JSON Traps)

Enabling Continue on Fail globally hides broken runs behind green execution badges. Here is how to audit exported workflows and enforce Dead-Letter Queue triage.

1. The continueOnFail / continueRegularOutput Trap

When a node uses continueOnFail=true, n8n passes error objects down the main branch and marks the execution green. Always use continueErrorOutput and wire port 2 to an explicit DLQ or alert.

// Audit exported JSON workflows in one command (MIT CLI)
git clone https://github.com/tolga571/n8n-workflow-auditor.git
node ./n8n-workflow-auditor/bin/n8n-audit.mjs ./workflows --strict

2. Catch Empty {} or Markdown-Fenced LLM Outputs Before DB Writes

LLM nodes frequently return ```json fences or empty {} objects that pass basic node execution but insert blank rows into Postgres, HubSpot, or Airtable. Strip fences and check required keys before any sink write.

const cleaned = rawText.replace(/^```(?:json)?\s*/i, '').replace(/```\s*$/i, '').trim();
const parsed = JSON.parse(cleaned);
if (!parsed || Array.isArray(parsed) || Object.keys(parsed).length === 0) {
  throw new Error('EMPTY_OBJECT_SILENT_FAIL');
}

3. Separate 429/502 Retries From 400 Fast-Fail

Retrying a 400 Bad Request wastes API quota and delays failure alerts. Classify 408/425/429/500/502/503/504 into exponential backoff while routing 400/401/403 directly to your DLQ.

const TRANSIENT = new Set([408, 425, 429, 500, 502, 503, 504]);
const shouldRetry = TRANSIENT.has(status) && attempt < maxAttempts;
Get Free MIT Auditor CLI Get 4 Drop-In Sub-Workflows + Patcher ($29)