Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Interface Errors and Reconnection Behavior

An interface error can come from input validation, access, a workflow failure, or a disconnected response. Identify the affected stage before asking the user to retry.

Check the original execution before resubmitting

Authenticated v2 recovery pattern. If creation timed out before returning an ID, do not assume nothing ran: reconcile the operation before resubmitting, especially when it can change an external system.

Copy the example
# If creation returned a run ID, keep it after disconnecting.
GET /v2/runs/{run_id}

# queued / running -> continue following this run
# paused           -> display the pending response request
# succeeded        -> inspect the existing result
# failed           -> inspect the error before retrying
# cancelled        -> report the final cancelled state

Before you begin

The interface error and the related run ID where available.

Key concepts

Term
Definition

Timeout

A limit on how long a particular client or operation waits. It does not always establish that execution or an external write stopped.

Streaming

Delivery of incremental events or text while work is running. Updates are not the same as a completed answer.

Run

One execution of a project. Use its run ID to retrieve that execution’s state, input, output, and errors.

Reconciliation

Checking the run or destination to determine whether an uncertain operation completed. Do this before retrying a write after a timeout.

Retry

A repeated attempt after a failed or uncertain operation. It can repeat external changes; use it only when the result is understood.

Recover from an interface error

  1. Check whether the request created a run.

  2. Inspect input errors, access settings, and the run’s failing step.

  3. Restore the connection or correct the cause, then check the original run before resubmitting.

The interface recovers without unnecessarily repeating work.

Behavior and limitations

Reloading a page does not necessarily cancel the active run. Resubmission can repeat provider writes. Display a clear error state rather than keeping a permanent loading indicator. A disconnected stream and a failed workflow are different conditions.

Interface Inputs and Output Mapping

Was this helpful?