Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error handling

Things fail: an API returns 500, a record is missing, an expression reads a field that is not there. Tappet gives you four levels of control, from a single node to the whole instance.

Node errors

When a node fails, the error records:

  • a message written for humans,
  • the kind of failure (configuration, expression, authentication, remote service, timeout, …),
  • for HTTP-based nodes, the HTTP status, the vendor’s error code when there is one, and a redacted summary of the request (method and URL, never credentials).

The execution view shows the error on the failing node, with the input items it received.

Per-node settings

On error

SettingBehavior
stopWorkflow (default)The execution stops and is marked as failed. The error workflow runs, if configured.
continueRegularOutputThe failing items are passed to the regular output with an error field describing the failure, and the workflow continues.
continueErrorOutputThe node gets an extra error output. Items that succeeded go to the regular output; items that failed go to the error output, where you can connect recovery steps.

Legacy workflows may use continueOnFail: true instead; it behaves like continueRegularOutput.

A typical pattern with an error output:

HTTP Request -+-> (success) Update CRM
              +-> (error)   Slack: "Order sync failed for {{ $json.id }}" -> Add to retry sheet

Retry on fail

SettingDefaultEffect
retryOnFailoffRetry the node when it fails.
maxTries3Total attempts, including the first.
waitBetweenTries1000 msPause between attempts.

Retries apply to the whole node run. Independently of this setting, HTTP Request and connectors already retry individual requests on 429, 5xx and connection errors with exponential backoff and jitter, honoring Retry-After. Use retryOnFail for failures the request layer does not retry, such as a validation error that clears up after a delay.

Always output data

When enabled, a node that produces no items emits one empty item instead, so downstream nodes still run. This is useful after lookups that can legitimately find nothing.

Stop and Error

The Stop and Error node fails the execution on purpose with your own message or error object. Use it after validation steps:

IF ($json.amount > 10000) -> (true) Stop and Error: "Amount {{ $json.amount }} needs manual approval"

Error workflows

A workflow’s errorWorkflow setting names another workflow to run whenever an execution fails (after any node-level handling). The error workflow starts at its Error Trigger node, which receives one item describing the failure:

  • the execution: ID, URL in the UI, mode, retry-of reference,
  • the failed workflow: ID and name,
  • the error: message, failing node name, and stack when available,
  • the last node that executed.

Use an error workflow to notify a channel, open a ticket, or record failures centrally. Several workflows can share one error workflow.

Execution timeout

executionTimeout (workflow setting) bounds the total duration of an execution. When it expires, the running node is cancelled and the execution fails with a timeout error.

Retrying executions

Failed executions can be retried from the execution list or with POST /api/v1/executions/{id}/retry. The retry reuses the stored output of the nodes that succeeded and runs again from the failed node, so completed side effects are not repeated. The new execution has mode retry and links to the original.

Limits that produce errors

These guards stop runaway workflows and fail the execution with a clear error:

LimitDefaultVariable
Runs of one node per execution10,000TAPPET_MAX_NODE_RUNS
Items in one node output1,000,000TAPPET_MAX_ITEMS_PER_OUTPUT
Sub-workflow nesting10TAPPET_MAX_SUB_WORKFLOW_DEPTH
Code node run time5 sTAPPET_CODE_TIMEOUT
JavaScript memory per runtime64 MBTAPPET_JS_MEMORY_LIMIT

Secrets in errors

Error messages, execution data and logs are redacted: every credential value resolved during the execution is masked in its raw, base64, base64url, URL-encoded and Bearer-prefixed forms, and headers such as Authorization and Cookie are always masked. See the security model.