n8n troubleshooting

How to Debug Failed n8n Workflows: Step-by-Step Guide

A workflow failed. The execution log shows a red node, but the error message is not obvious. This guide covers where to look first, how to reload real data and rerun, and the five errors that cause most n8n failures.

Developer inspecting a failed n8n workflow with a red error node on the canvas

Most n8n failures are not mysterious. They repeat the same patterns: a credential expired, an expression pointed to the wrong field, a webhook URL was the test one instead of the production one. The hard part is knowing where to start when all you see is a red node and a generic error message.

Partner disclosure. This guide includes a partner link to n8n Cloud. If you sign up through it, FloxoLab may earn a commission at no extra cost to you.

This guide walks through the tools n8n gives you for debugging, the five errors that cover most real-world failures, and two nodes that help you handle failures more intentionally going forward.

1. Start with Execution History

Start with the execution history. If the workflow settings save the execution data, you can inspect the input, what each node did, and where it stopped.

Open the workflow and select the Executions tab at the top. You will see a list of past runs with their status: Success, Failed, or Waiting. Select a failed one to open it.

Inside the execution view you can see the canvas in its failed state: the node that caused the failure is marked in red, and the bottom panel shows the error message and the log. This tells you which node broke and what the error was, before you touch anything.

n8n Executions tab showing a failed execution with the error details panel and the Debug in editor button in the top right corner
The Executions tab shows past runs with their status. Open a failed execution to see which node broke, read the error message in the log panel, and find the Debug in editor button in the top right corner.

Read the error message before doing anything else. Many failures explain themselves: "401 Unauthorized", "Cannot read properties of undefined", "The provided authorization grant is invalid". The node name plus the error text is usually enough to know what went wrong.

2. Debug in Editor: reload real data and rerun

Once you understand what failed, use the Debug in editor button. This opens the current workflow in the editor and pins the saved execution data in the first node. You can then make changes to the broken node and rerun the workflow using the same real data, without needing to trigger a new event.

Do not retry a write blindly. If the failed run may already have created an invoice, sent a message, charged a card, or updated a CRM, check the destination first. A retry can duplicate the action even when n8n recorded the workflow as failed later in the run.

n8n editor canvas with execution data loaded from a failed run, showing the error in the bottom panel
After clicking Debug in editor, the canvas loads the data from the failed execution. Fix the broken node and rerun with the same real input. No need to trigger a new event.

This is especially useful for workflows triggered by external events: a form submission, a webhook call, or an email. Reproducing that exact input manually takes time. Debug in editor retrieves the original data when the execution is saved. The feature is available on all n8n Cloud plans and on registered Community, Business and Enterprise self-hosted installations. See the Debug executions documentation.

For successful executions, the same panel offers Copy to editor instead. That is useful when you want to test changes against a known-good input rather than a failed one.

3. Retry a past execution

If you only need to run the failed execution again, you do not have to open the editor at all. n8n can rerun a past execution directly from the Executions tab, reusing the exact input data from the original run.

Hover over a failed execution in the list, or open it, and use the retry option. n8n gives you two choices:

Both options reuse the original trigger data from that execution, so you do not need to resend the webhook, resubmit the form, or wait for the next scheduled run. The retry appears as a new entry in the Executions list.

Retry is the fastest way to rerun an execution when you already know the cause. Debug in Editor is the better choice when you still need to inspect the data and change a node before running it again.

4. The 5 most common errors

These five patterns account for most of the failures you will actually see in production n8n workflows.

Credential or auth error (401, 403)

The node could not authenticate with the external service. Common causes: the credential expired, the API key was regenerated, OAuth tokens were revoked, or the connected account lost the required permissions.

Fix: open the node settings and re-test the credential. If it fails the test, reconnect or regenerate it in the credentials panel. For OAuth-based services like Gmail or Google Sheets, you may need to re-authorize from scratch.

A 403 means the service refused the request. Check permissions, OAuth scopes, and the service's access policies. The status alone does not establish that the credential is valid.

Expression error (undefined, wrong syntax)

An expression in a field is referencing a value that does not exist. The result shows [undefined] or the workflow throws a "Cannot read properties of undefined" error.

n8n expression editor showing undefined result for a field path that does not exist in the input data
The expression editor shows [undefined] when the referenced field path does not exist in the input data. Open the left panel to inspect what fields are actually available.

Fix: click on the broken field to open the expression editor. On the left panel, expand the input data from the previous node and check the actual field names and structure. A common mistake is using {{ $json.name }} when the real field is nested: {{ $json.contact.name }}. Use the field browser to drag the correct path into the expression.

Webhook not firing (test URL vs production URL)

The external service is configured, but no data arrives. Start by checking whether the sender has the Test URL or Production URL, then check whether that endpoint is currently registered.

n8n gives each webhook two URLs. The Test URL works after you select Listen for test event during the test listening window. The Production URL works after you publish the workflow. Current n8n versions use Publish terminology, and production executions appear in the Executions tab rather than live on the editor canvas.

If the request still returns 404, follow the focused n8n webhook troubleshooting checklist for URL mode, publishing, HTTP method, path conflicts, and reverse-proxy settings. Return to this broader guide when the webhook reaches n8n but a downstream node fails.

API timeout or rate limit (429)

The HTTP Request node or an API-connected node stops responding. You may see a 429 Too Many Requests error, or the execution simply times out.

HTTP Request exposes a Timeout option in milliseconds. Also check the destination service's limits. An HTTP 429 response indicates that a request limit was exceeded.

Fix for rate limits: add a Wait node between batched requests to slow down the pace. Fix for timeouts: check whether the external API is responding at all (test it directly in a browser or with a manual HTTP call), then increase the timeout in the HTTP Request node settings if the service is just slow.

If that API call creates an order, lead, payment, or message, do not retry it blindly. Follow the safe n8n API retry pattern to reuse one stable idempotency key and prevent a lost response from becoming a duplicate side effect.

Data type mismatch (array vs object, null values)

A node expects a single object but receives an array, or a field contains null and the next expression tries to read a property from it. This often surfaces as "Cannot read properties of null" or unexpected behavior where only the first item is processed.

Fix: use the Input panel to inspect what the previous node actually returned. If it returned an array when you expected an object, add a Split Out node to break it into individual items before processing. If null values cause crashes, add an IF node upstream to filter them out before they reach the sensitive step.

5. Enable debug logging (self-hosted only)

If you run n8n on a self-hosted VPS and the execution log does not give enough detail, you can turn on verbose logging by setting N8N_LOG_LEVEL=debug in your .env file and restarting the service with the updated environment. If Docker injects the variable when the container is created, recreate the container with the updated configuration.

N8N_LOG_LEVEL=debug

Debug logging increases server log detail. Use it to investigate intermittent failures that are difficult to reproduce in the editor. What gets logged depends on the node and failure. Inspect logs before sharing an excerpt.

Reset after debugging. Debug output is verbose and will fill disk space quickly on a small VPS. Set N8N_LOG_LEVEL=info or remove the variable once you have found what you needed.

6. The Debug Helper node

Most n8n users do not know this node exists. The Debug Helper is a built-in utility node that lets you deliberately trigger different error types or generate random test data inside a workflow.

n8n Debug Helper node settings showing the category options: Do Nothing, Throw Error, Out Of Memory, Generate Random Data
The Debug Helper node has four modes. Throw Error is useful for testing your error workflow before real failures happen in production.

The four modes are:

The most practical use of Debug Helper for most workflows: add it temporarily before your error-handling path and set it to Throw Error. This lets you verify that your Error Workflow actually fires and sends the alert before you see a real failure in production.

7. Stop And Error: controlled failures with clear messages

Sometimes a workflow should stop not because something broke unexpectedly, but because the data does not meet a condition you care about. An empty response from an API, a missing required field, a contact that should not be there. Without explicit handling, the workflow either completes silently or fails with a confusing message.

n8n Stop and Error node configured with Error Message type and a custom error message
Stop and Error lets you define exactly when and why a workflow should fail, with a message that makes the cause clear in the execution log and in any error alerts.

The Stop And Error node ends the workflow at that point and marks the execution as failed, with the message you provide. Two error types are available: Error Message (a plain text string) or Error Object (a JSON object with structured error properties).

Used with an IF node upstream, this gives you intentional failure points. The workflow says "no valid email found, stopping here" instead of crashing three nodes later with a cryptic null reference. When that controlled failure triggers your error alert, the message is already readable.

Place Stop And Error wherever you want that branch to stop the execution deliberately.

Connect failures to alerts

Debugging after a failure is reactive. The better habit is knowing about failures before someone else does.

Assign a handler in the production workflow's Error workflow setting. When an automatic execution fails, Error Trigger starts the handler so you can notify the team. Include the workflow and error, plus the failed node and a link to the execution when available.

The full setup, including what the alert should contain and how to point multiple workflows at a single shared error handler, is covered in the n8n error workflow and chat alerts guide.

Official n8n references

n8n rerun and retry: common questions

How do I rerun a failed execution in n8n?

Open the Executions tab, hover over the failed run, and choose a retry option. Retry with original workflow reruns it exactly as it was; Retry with currently saved workflow runs the same input through your latest saved version. Both reuse the original trigger data, so you do not need to trigger the workflow again.

What is the difference between Retry with original workflow and Retry with currently saved workflow?

Retry with original workflow runs the execution using the workflow exactly as it was when it first ran, which suits temporary failures like rate limits or a service that was briefly down. Retry with currently saved workflow runs the same input through the latest saved version, which is what you want after fixing the broken node.

Does retrying an n8n execution reuse the original data?

Yes. Both retry options replay the original trigger and input data from the failed execution. You do not need to resend a webhook, resubmit a form, or wait for the next scheduled run.

Can I rerun an n8n workflow from a specific node?

Use Debug in editor to load the failed execution's data onto the canvas, then run a single node or the steps after it without retriggering the whole workflow. This is the better option when you need to change a node before running it again.

n8n referral

Want to test this on n8n Cloud?

FloxoLab may earn a commission if you sign up through this link, at no extra cost to you.

Try n8n Cloud

Workflow failing and you are not sure why?

Send FloxoLab the error message and the workflow type. We will tell you where to look first and what the most likely cause is.

Get help