Error codes
The engine's error codes with their meaning and remedy; the run codes; what is never a failure.
Generated from the SDK's own source (
packages/durable-core/src/engine/error-code.ts) at build; edit there.
Every code a failed run or step carries, with its meaning and its remedy; npx durable-sdk explain <code> answers a row offline, and the console's issues view shows the remedy under every failed run. A transient code is one the engine's own auto-redrive may retry.
The engine's codes (60)#
StepError: A step's body threw: the step failed with the error named, the saga compensated the completed steps before it and the run is in limbo. Remedy: Read the step's error and logs on the run page; fix what they name (a provider down, a bug in the body), then redrive; dismiss with a reason when the outcome was fixed by hand. (ADR-0031; ADR-0041 item 4)StepTimedOut(transient): A plain step's try ran past the timeoutMs it declared (ADR-0063 B03): the try's signal aborted, and once its retry, if any, was spent the step failed with it. Remedy: Raise timeoutMs if the call is merely slow, or declare a retry whose codes name StepTimedOut so a slow try is tried again, then redrive; a timeout is admitted on a read step alone, so nothing landed half-way. (ADR-0063 B03)RunNotStarted:executefailed before a run existed (the key, the scope or the summary threw, the schema probe refused, the actor is outside the grammar): nothing to redrive, nothing in limbo. Remedy: Read the cause: a SchemaBehind is the migrator's baseline (durable-sdk migrate --baseline=if-missing), a SchemaDrifted the doctor's fix SQL ormigrate restamp, a NamingMismatch the DURABLE_NAMING variable, a BadActor the caller's actor, a KeyCollision two definitions sharing a key, anything else the key or scope function; fix the caller and trigger the intent again. (ADR-0041 item 5)KeyCollision: Two workflow definitions produced one idempotency key: the key row belongs to another workflow, so the run was refused before it existed. Remedy: Give one of the two definitions a key that names it (a field list under the workflow's own prefix); trigger the intent again. (ADR-0041 item 38)AttemptFenced: The attempt lost its lease: a later attempt claimed the run, so this one stopped before its next write and compensated nothing. Remedy: Nothing: the owning attempt's outcome stands; read it on the run page, and redrive only if the run is in limbo. (ADR-0041 item 16)RateLimited(transient): A provider call found no token in its account's rate bucket within the wait a step may make; nothing was sent, and inside a step the run parked on a rate wait until the bucket's moment. Remedy: Wait: the tick's resumer wakes the run at the bucket's moment and the step re-runs from its row; a bucket held long after the provider's window is lifted with liftHold. (ADR-0052 decision 5)ResumeMismatch: A resume or redrive by run id met a run whose name, key or key owner differ from what the caller holds: a bug class, logged, never a claim. Remedy: Nothing on the run, which keeps its state: read the log line for the two sides (resume mismatch for run: ) and fix the caller that claimed by id. (ADR-0041 item 5) UnrecordedWriteError: A write landed and its ledger row did not (a database timeout after the call): the intent stays on the step row as pending, the step failedwrite applied; ledger row missingand the rollback restored the before image where it could. Remedy: Redrive: the next attempt looks for the landed row, then reads the world, and a write that stands gets its:reconcile row (outcome RECONCILED), no second write; nothing by hand. (ADR-0041 item 6) UnrecordedChunkWritesError: A batch chunk under { ledger: "chunk" } landed its recorded writes and its one flush of their ledger rows did not (a database failure at the chunk's end): the writes stand in the world, their intents stay on the chunk's row as pending, the chunk failed naming the keys and the run landed FAILED, never COMPENSATED over them, with the earlier chunks put back. Remedy: Redrive: the next attempt re-invokes the chunk, reconciles each intent from the world first (a write that stands gets its row, no second write) and flushes again; nothing by hand. (ADR-0052 decision 4; ADR-0063 amendment 2026-10-08 (the audit), FW-020)WriteDiverged: A state transition's reconciliation found the resource at neither its before nor its after image: a later actor moved it, so the stale transition was not written over it. Remedy: Read the resource (the step's pending entry names it and both images) and who moved it (GET runs/:id/drift, the run page's Drift section: the field, its three values and the run that moved it; a third-party sync when no run names it); once the world is right, dismiss with what you found, or trigger the intent again under a new request id if the write is still wanted (a dismissal leaves the key on the failed run, and the same key answers that run). An intent that was stale by a race (the first attempt's row saysStaleWriteunder this write's own key: two writers raced one row and this one's compare-and-set matched nothing) is dropped from the row since ADR-0041's amendment of 2026-10-06 (the evening), so a redrive on a deployment carrying it reads the world afresh and writes from a fresh before image: redrive; a run whose stale intent still stands from before it is dismissed with the reason and its intent triggered again. AStaleWritea nested write threw under another key after this write's provider call landed is no stale intent of this write: its entry stays, and the redrive reconciles it from the world. (ADR-0041 item 6; ADR-0041 amendment 2026-10-06)StaleWrite: A database write's compare-and-set on its before image matched no row: the resource moved since it was read (a later attempt or another run moved it first), so nothing was written. Remedy: Read what moved and who moved it: GET runs/:id/drift (the MCP run_drift; the run page's Drift section) answers a row per ledger row this run wrote (source ledger: each field as the step read it, as it left it and as it stands) and a row per pending intent of the refused write (source intent: each field as the write expected it and as it stands, so a run whose only write on the resource was the refused one still has its row), each with the run that moved the resource. Usually that later run did the work: dismiss this one with a reason; redrive only when the write is still wanted, since the attempt re-reads and reconciles rather than overwriting. (ADR-0041 item 6; ADR-0063 B13)SagaFailure: The saga's own verdict over a failed step: the step named failed, the completed steps were compensated in reverse, and the message lists what was undone, what refused to and what was irreversible. Remedy: Read the message's parts:compensatedis clean to redrive or dismiss;compensation failed: <step>wants the ledger image checked by hand;not undone: <steps>names effects that stand by design. (ADR-0041 wave 3)Cancelled: A person cancelled the run (run.cancel): the recorder stopped it at a step boundary, or a call in flight listening to the attempt'sstopsignal ended with it (ADR-0063 B32), and the saga compensated the completed steps; never a cause (the finish writes no signature for it). Remedy: Nothing unless the work is still wanted: redrive then (the redrive's claim clears the flag), or leave it; a non-idempotent write in flight completed before the cancel took, and a call that listened tostopended at it. (ADR-0051 §12)RunTimedOut: The run's deadline (defineWorkflow({ timeout }), stamped at its start) passed: the recorder stopped it at a step boundary (a wake's first, when the resumer's sweep fired its open waittimeout) or the body's end, and the saga compensated the completed steps. Remedy: Read why it took longer than the timeout (a wait for a fact or a signal that never came, a slot held, a long chain of children); a redrive's claim re-arms the deadline from its own moment, so redrive once the cause is fixed, or dismiss the run with the reason and start the intent again under a new request id; raise the definition's timeout for the next runs if the work needs it. (ADR-0063 B16)UndoStopped: A reversal met the world moved: a reverter refused or its compare-and-set found a row no longer at its after image; the reversals before it stand on the ledger and nothing was overwritten. Remedy: Read the report (what was reverted, where it stopped, why); put the moved row right by hand if the reversal is still wanted, then redrive the undo run, which resumes after the rows its own ledger reverses. (ADR-0051 §13)CompensationStopped: A step's compensation met the resource at neither the write's after image nor the before image it would restore (a later actor moved it): the compensate answered so as a value, nothing was restored and no row claims it; the step stands as not undone and the run is FAILED, never COMPENSATED. Remedy: Read the reason (the resource and the image found) beside the step's ledger row (the write's two images); put the resource right by hand if the rollback is still wanted, then redrive the run (its re-invoked step reads the world and no-ops where it already matches) or dismiss it with what you found. (ADR-0041 amendment 2026-10-06)ActsOnRelayedCopy: A scope resolver (a connector, a client, a session) was reached on behalf of a relayed copy: a listener registeredexecutefor an origin whose facts it may not act on here. Remedy: Fix the registration, never the fact:relay: "record", or{ execute: [peers] }without that peer; the row parks until the deploy, then redrive. (ADR-0046 §C)BatchOutputNotReplayable: A batch chunk's output could not be served from its row (stored truncated past the cap, or redacted), and a batch never re-runs a completed chunk's body. Remedy: Make the chunk's output small and secret-free (return counts and ids, not rows); redrive after the deploy: the attempt re-runs the chunk that failed, never the completed ones. (ADR-0052 decision 2)ChildFailed: A ctx.child ended failed, compensated or undone underonFail: "throw": the parent's step failed and the saga compensated the steps before it. Remedy: Work the child as any run (the parent's wait links it): redrive the child, then the parent, whose redrive re-asks the child's outcome; oronFail: "return"where the parent should decide. (ADR-0050 decision 3)JoinFailed: A ctx.fanOut join fired with more failed children thantolerateadmits underonFail: "throw"(ADR-0076 FP-037): the parent's step failed and the saga compensated the steps before it; the children still going went on, the landed ones stand. Remedy: Work the failed children as any run (the parent's join card lists the first of them; the parent's step carries the count): redrive them, then the parent, whose redrive re-joins the children as they stand (a child still in flight at the redrive is counted as remaining and the parent parks until it lands); oronFail: "return"or a widertoleratewhere the parent should decide. (ADR-0076 FP-037)InvalidCron: A schedule's cron expression is outside the grammar (five fields, UTC); refused at definition, so the module fails to load. Remedy: Fix the field the message names (minutes, hours, day of month, month, day of week;every: "<n>m"for a plain interval) and deploy. (ADR-0050 decision 2)RunFailed: executeOrThrow met a run that did not complete (failed, compensated, undone or still running): the route that must not go on stopped here with the run's own sentence. Remedy: The run is on the Errors page under its own cause: fix that and redrive it, or dismiss it and trigger the intent again under a new request id (a dismissal leaves the key on the failed run, and the same key answers that run); a route never retries it. (ADR-0051 §1)WaitTimedOut: A waitFor, waitForApproval or child deadline passed before what it waited for arrived (underonTimeout: "fail"): the step failed on the attempt that woke and the saga compensated the completed steps. Remedy: If the fact or signal was merely late, redrive (the run waits again with a fresh deadline) and, if you hold it, signal the WAITING run under the wait's token so the step reads{ fired: "signal" }(run.signal refuses a FAILED or COMPENSATED run by a value: the redrive comes first); if it never comes, dismiss with the reason. (ADR-0050 decision 3)VersionMismatch: The run's stored definition version is not the registered one: a deploy changed the workflow while the run was in flight, and the resumer abandoned it (abandoned: version <from> → <to>) rather than replay rows a different body wrote. Remedy: Read the diff between the two versions; when the new body replays the old rows safely, redrive under the deployed version ("Redrive under version N", acceptVersion on the redrive); otherwise dismiss it and trigger the intent again under a new request id (the same key answers the failed run). (ADR-0051 §15)AbandonedAttempts: The run was reclaimed by the tick's resumer as many times as the cap on abandoned resumes allows (RESUME_MAX_ATTEMPTS: a step that kills the function at every attempt, a timeout, an out-of-memory, a deploy mid-run each time), and the resumer landed it FAILED (abandoned: attempt limit <n>) rather than reclaim it for ever. Remedy: Read why the function dies at the step (the run page's attempts and their last step, the logs under the run id), fix that, then redrive it (a redrive lifts the cap by one, since the redrive's claim is a person's and the cap counts the resumer's claims alone); dismiss with the reason when the run should not go on. (ADR-0063 B17)StepIdReused: Two steps of one attempt declared the same stable id, so the memo could serve one's row for the other; the second ctx.step failed the body. Remedy: Give each step its own id (or distinct names) in the definition; redrive after the deploy. (ADR-0051 §15)ReplayDiverged: The body walked a different step at this seq than the earlier attempt's row holds (a step inserted or reordered without ids, or renamed under its id), or handed the step another input than its row holds, for an effect other than read; the memo refused to re-invoke it and landed the row FAILED before any provider was called again. Remedy: Give the step an id or bumpversion; a body must not branch on the clock, randomness or a row read outside a step. Then redrive (a run in flight under the old body stays FAILED until a person does). (ADR-0063 B04)PatchStillOpen: The body calledctx.deprecatePatch(id)while a pre-patch run of the definition is still open (a RUNNING or WAITING run with nopatch:<id>marker, this run excluded) or on a run that itself walked the old branch (another step's row where the marker would stand); the deprecation is refused before any step of the new branch runs, since such a run resumed under the new branch alone would diverge from its rows. Remedy: Keepctx.patched(id)with both branches deployed until every open run without the marker has landed (a redrive or a dismiss ends one), then deployctx.deprecatePatch(id)with the new branch alone; redrive the runs this deploy failed after the fix, or dismiss a run that should not go on. (ADR-0076 D07 (FP-034))UnreplayableOutput: A step with an effect other than read returned an output its row cannot replay (stored truncated past MAX_IO_CHARS, or holding a value the policy redacts): the step failed after its body ran and after its ledger row landed, before its row completed, and the saga compensated as on any step failure (the refused step's effect undone with the stored form, or named as not undone). Remedy: Return a bounded delta from the step (ids, moments and the columns a caller keys on; never a row's lines or a list the world's size decides) and put the rest on the ledger; hand a one-time value back with ctx.reply, never as output; redrive after the deploy, which re-invokes the step. (ADR-0060 decision 9)UnstorableInput: The workflow's input carries a value its stored form cannot carry back to attempt 2 (a client, a secret, a function, a Date, a Map, a bigint, bytes, a promise, an Error, a cycle); execute refused it before any run row existed, naming the path. Remedy: Hand a client on execute options as client; read a secret inside the step or hand it on execute options; put a moment in the input as its ISO string, a Map as an array, a bigint as a string, a computed value as data. (ADR-0060 decision 7)WorkflowRedefined: Two modules defined a workflow under one name in one process (one copy of the package) and the instance is configured to refuse a redefinition; the second definition threw at its definition, before any run. Remedy: Give the second definition its own name, or delete the duplicate module; a dev server that reloads modules runs under reconfigure: "rebind", where the later definition replaces the earlier in place. (ADR-0060 decision 4)DefinitionIncomplete: A workflow definition carries no example or no describe and the instance is configured with definitions: strict; it threw at its definition (or the factory's sweep refused the boot) naming the module, the fields and the remedy, before any run. Remedy: Add example (an input the workflow accepts, or a thunk returning one) and describe (one sentence, the intent in words) to the definition the message names; durable-sdk doctor --definitions lists every definition with what it declares. (ADR-0060 decision 11)HookHandlerRedefined: Two modules registered a handler under one name on one hook of a workflow in one process (one copy of the package) and the instance is configured to refuse a redefinition; the second workflow.hooks.() threw at its registration, before any run. Remedy: Give the second handler its own name, or delete the duplicate registration; a dev server that reloads modules runs under reconfigure: "rebind", where the later registration replaces the earlier in place. (ADR-0063 Appendix M U1) ListenerRedefined: Two modules registered a listener under one name in one process (one copy of the package) and the instance is configured to refuse a redefinition; the second on() threw at its registration, before any delivery. Remedy: Give the second listener its own name, or delete the duplicate registration; a dev server that reloads modules runs under reconfigure: "rebind", where the later registration replaces the earlier in place. (ADR-0060 decision 4)ShopMismatch: The definition resolved one scope and the step's input names another: a step written for one partition ran under a different scope's session; refused before invoke. Remedy: Fix the caller: the workflow's scope and the step's input must name one partition; nothing was written, so redrive after the deploy, or trigger the intent again under a new request id (the same key answers the failed run). (ADR-0041 wave 1; ADR-0046 §M)NotConfigured: instance() was reached before createDurable() ran in this process: a module imported the engine ahead of the configuration. Remedy: Import the configuration module (durable.config.ts, or the barrel that imports it) before the engine; a route reaches the engine through the barrel alone. (ADR-0046 §C)NotLoaded: A resume, redrive, dispatch or registry read ran before the workflow manifest loaded, or after its load failed. Remedy: Read the load's cause in the logs (a definer module that threw at import); fix it and deploy: the tick loads the manifest before its lanes, and a failed load ends the tick as a recorded error until then. (ADR-0046 §C)SchemaBehind: The database's framework schema is behind the package (missing: no version row; behind: below the minimum): every run, resume, dispatch tick and relayed batch is refused until the migrator records it. Remedy: Rundurable-sdk migrate --baseline=if-missing(the baseline) ordurable-sdk migrate(the pending versions) against the unpooled URL, thendurable-sdk verify; the app recovers within a minute. (ADR-0043 §G)InstanceMismatch: The Instance row names another environment: a production deployment booted on a database whose one row belongs to a different name (one database pointed at by two names); every entry point refuses as the schema probe does. Remedy: Point the deployment at its own database, or, when the database truly changed hands, correct the row by hand; no verb rewrites it. (ADR-0046 §M step 7)SchemaDrifted: The live catalog's checksum is not the one the migrator stamped on durable_schema (a hand edit, a dropped index, an extra column; or a database major that re-spelled a deparsed text, the one false drift): every run, resume, dispatch tick and relayed batch is refused, and the probe asks again every minute. Remedy: Rundurable-sdk doctor --strictand apply its fix SQL (a real drift), ordurable-sdk migrate restampafter inspecting the catalog (a false one); the app recovers within a minute. While a false drift is diagnosed,schemaPolicy: { drifted: "warn" }lets one release run on it. (ADR-0062 unit 7)NamingMismatch: The version row records another naming preset than the configuration binds (DURABLE_NAMING): the tables are spelled one way and the engine would read them another, so every entry point refuses at the door instead of failing inside a verb. Remedy: Set DURABLE_NAMING to the preset the row records, then redeploy; a move between presets is a new SDK version, never a variable. (ADR-0062 unit 7)SchemaAhead: The database's schema is newer than this package knows and the bound policy'saheadsays refuse (by default ahead runs: expand-only keeps an older build on a newer schema, the code-rollback story). Remedy: Deploy the package that wrote the version (an older build was deployed), or bindschemaPolicywithahead: "warn"(the default) to let the older build run. (ADR-0062 unit 7)AlreadyConfigured: A second createDurable() ran in this process with a different configuration. Remedy: A host calls createDurable() once, in durable.config.ts; the dev server alone passesreconfigure: "rebind"for its hot reload; find the second caller and remove it. (ADR-0046 §C)BadActor: The actor is outside the principal grammar (: with a reserved or declared prefix): refused by execute before a run exists. Remedy: Pass an actor of the grammar from the caller (a reserved prefix, or one the host's principaldeclares); nothing to redrive. (ADR-0046 §C)InvalidCatalog: The event catalog was refused at boot: a duplicate name, a key that reads the clock (every key part is a required payload field), or a schema that is none, renders no JSON Schema or leaves a key part optional (ADR-0063 B27). Remedy: Fix the descriptor the message names in the host's catalog and deploy; nothing ran. (ADR-0046 step 3b)InvalidPayload: A fact's payload was refused at the door by the event's schema: the error names the event and the first issue's path and message, and nothing was inserted. Inside a run it is the step's failure (ctx.emit threw it); outside one the same refusal is a value, emit()'s { emitted: false, refused: "invalid_payload", issues } or the relay receiver's rejected entry. Remedy: Fix the emit site to spell the payload the schema declares (every key part present, each field its type), or widen the schema in the catalog where the payload is right, deploy, then redrive the run; a webhook delivery answered 400 is redelivered by the provider, and a rejected relay copy is counted done at the sender and never resent. (ADR-0063 B27)ListenerRunFailed: A listener's keyed run reached FAILED or COMPENSATED: the event was delivered and the reaction failed; the row is parked and the run is in limbo with its error. Remedy: Open the listener's run (the Events page names it) and work its own cause; redrive it from there, which un-parks the row. (ADR-0031; ADR-0041 item 15)ListenerInProgress: A listener's keyed run is still running under a live lease (this tick's or another's): not a failure; the dispatcher released its claim and asks again next tick. Remedy: Nothing: the next tick delivers a run that finished meanwhile as completed; a run that stays RUNNING past its lease is the resumer's. (ADR-0041 item 15)UnknownPeer: A name that is not among the peers this app knows (a ping, a backfill or a policy naming a member the resolver does not answer). Remedy: Name a member of the peers file that holds a pair secret here (durable-sdk env list; GET environments), or add it withdurable-sdk env add. (ADR-0053)PeerMisconfigured: The peer list the host bound cannot be used: a member's name, URL, globs or secret breaks the rule the message names. Remedy: Fix the peers file or the pair secret variable the message names (durable-sdk env doctornames a missing one,durable-sdk peer syncwrites it); the boot asserts the file, so a bad edit fails there. (ADR-0046 §H; ADR-0053)PeerRefused: A peer answered a relayed batch with a status that is not 2xx (a 401 on a secret out of step, a 409 out of sequence, a 503 while it refuses every run); the sender keeps the rows and sends again. Remedy: Read the peer's status in the relay.* logs: a 401 is the pair secret (durable-sdk peer secret rotate,doctor --vercel), a 409 is resynced by the sender itself, a 503 is the peer's own schema refusal; nothing is lost. (ADR-0046 §H; ADR-0046 §M step 7)StoreError: The store classified a database failure (timeout, lock_timeout, conflict, unique, transient, schema, other) and threw it with the driver's error as cause; the engine retried the retriable kinds once (timeout, lock_timeout and conflict on a ledger append after the landed lookup; transient, a connection lost or a server shutting down, at a step boundary, the finish and the dispatcher's claim and mark, FP-005), and this is the second failure or a kind it never retries. Remedy: A unique or schema kind is the caller's or the migration's; a timeout or a lock is load (the Workers page's pressure, the database's pool), and on a single statement it is the connecting role's server-side bound (statement_timeout 20 s, lock_timeout 5 s: a step boundary's fenced insert behind a claim that held the run row past five seconds fails the step with this kind, never silently); a transient kind is the database's availability (a failover, a pool with nothing to hand out: thestore.transient_retriedlines before it say how often the one retry absorbed a blip); redrive once the database answers. (ADR-0043 §J; ADR-0076 D04)thrown: Something that is not an error was thrown (a string, a number, a bare object), so no class names the cause. Remedy: Throw an Error (or a named class) from the body so the cause reads on the issues view; redrive after the deploy if the failure was transient. (ADR-0051 §9)marked: The body marked the run failed (ctx.fail with a reason): nothing was thrown, the body decided. Remedy: Read the reason: fix what it names, then redrive, or dismiss with what you did. (ADR-0051 §9)abandoned: The resumer marked a RUNNING run failed because it could not replay it (abandoned: <reason>): a definition this deployment does not know, no stored input (too large, or before ADR-0016), a redacted secret in the stored input, an input that cannot be keyed or no longer keys to this run, no key on the run, or a key another run now owns (superseded by <run>; not redrivable). Remedy: A definition this deployment does not know or an input that cannot be keyed is fixed by a deploy, then redrive; the rest is terminal (no stored input, a redacted secret, an input that no longer keys, no key, superseded): trigger the intent again under a new request id, since a dismissal leaves the key on the failed run. (ADR-0016; ADR-0041 item 22)FunctionKilled(transient): The platform killed the function with this step in flight (ADR-0066 D07): the invocation ended before the attempt could write the step's outcome, and the attempt that reclaimed the run (the resumer past the lease, or the kill-claim once the kill is stored) stamped the code on the dead attempt's open STARTED row with how far past its deadline the claim came; the step was re-invoked in a fresh invocation and its pending writes reconciled from the world first, so nothing was lost or doubled. One kill is one code: a run reclaimed after a kill is neverabandoned, which names a run the resumer could not replay at all. Remedy: Nothing to redo (the reclaim re-ran the step; a kill inside the rollback resumed the rollback, never the body, FW-010). Keep it from happening again: pass i.stop to every call and read i.budget.leftMs() in loops so the step parks at the budget instead, declare needs so it starts only with room, or split the work into steps or a batch; the price of a kill is the wait before the next attempt (the lease, or the kill grace once stored). (ADR-0066 D07)invalidate_refused: A redrive that invalidates steps claimed an abandoned run and then refused: an irreversible step is among the named, so nothing was put back and the run landed FAILED naming the refusal. Remedy: Redrive again naming only reversible steps (or none: a plain redrive replays the irreversible ones), or dismiss with what stands. (ADR-0051 §12)undone: The run was reverted. Remedy: Trigger the intent again to run it afresh. (ADR-0041 item 23)NonIdempotentWriteFailed:*: A write the host dared not retry (a provider call that is not idempotent) failed with the cause named after the colon and may or may not have landed; nothing was re-sent. Remedy: Redrive after a minute: the next attempt reads the world first and adopts what landed or writes once (ADR-0041 item 6's reconciliation); never clear the step's pending entry by hand. (ADR-0041 item 6; ADR-0051 §9)http_*: A provider answered an HTTP status no row names, the number after the underscore (a 4xx is spelled by its number, so a 401, a 404 and a 409 are three causes; every 5xx is http_5xx, the provider's own failure whatever the number); the step's captured lines carry the request and the provider's message. Remedy: Read the step's lines for the provider's message; a 4xx is fixed where the request was made (the input, the credential, the record the provider refused) and the run redriven, which re-runs the step from its row and reconciles a write that may have landed; a 5xx is redriven once the provider is back. (ADR-0051 §9; ADR-0063 B35)
The run's codes (6)#
What a run that failed outside a step's own error carries.
thrown: Something that is not an error was thrown (a string, a number, a bare object), so no class names the cause. Remedy: Throw an Error (or a named class) from the body so the cause reads on the issues view; redrive after the deploy if the failure was transient. (ADR-0051 §9)marked: The body marked the run failed (ctx.fail with a reason): nothing was thrown, the body decided. Remedy: Read the reason: fix what it names, then redrive, or dismiss with what you did. (ADR-0051 §9)abandoned: The resumer marked a RUNNING run failed because it could not replay it (abandoned: <reason>): a definition this deployment does not know, no stored input (too large, or before ADR-0016), a redacted secret in the stored input, an input that cannot be keyed or no longer keys to this run, no key on the run, or a key another run now owns (superseded by <run>; not redrivable). Remedy: A definition this deployment does not know or an input that cannot be keyed is fixed by a deploy, then redrive; the rest is terminal (no stored input, a redacted secret, an input that no longer keys, no key, superseded): trigger the intent again under a new request id, since a dismissal leaves the key on the failed run. (ADR-0016; ADR-0041 item 22)FunctionKilled(transient): The platform killed the function with this step in flight (ADR-0066 D07): the invocation ended before the attempt could write the step's outcome, and the attempt that reclaimed the run (the resumer past the lease, or the kill-claim once the kill is stored) stamped the code on the dead attempt's open STARTED row with how far past its deadline the claim came; the step was re-invoked in a fresh invocation and its pending writes reconciled from the world first, so nothing was lost or doubled. One kill is one code: a run reclaimed after a kill is neverabandoned, which names a run the resumer could not replay at all. Remedy: Nothing to redo (the reclaim re-ran the step; a kill inside the rollback resumed the rollback, never the body, FW-010). Keep it from happening again: pass i.stop to every call and read i.budget.leftMs() in loops so the step parks at the budget instead, declare needs so it starts only with room, or split the work into steps or a batch; the price of a kill is the wait before the next attempt (the lease, or the kill grace once stored). (ADR-0066 D07)invalidate_refused: A redrive that invalidates steps claimed an abandoned run and then refused: an irreversible step is among the named, so nothing was put back and the run landed FAILED naming the refusal. Remedy: Redrive again naming only reversible steps (or none: a plain redrive replays the irreversible ones), or dismiss with what stands. (ADR-0051 §12)undone: The run was reverted. Remedy: Trigger the intent again to run it afresh. (ADR-0041 item 23)
Never a failure (6)#
What a body may throw that the recorder never counts as a failure.
RunParked: a park is how a step leaves a run waiting, never how it fails; it never reaches the recorder's failed.RunContinued: a continuation is how a body hands the run on to the next run of its chain (ctx.continueAsNew, ADR-0076 FP-032), never how it fails; the saga passes it up as it passes a park, the run lands CONTINUED and the next run starts in the same invocation.WaveRateLimited: a chunk's RateLimited under an open batch wave, or a step's inside a ctx.all member, answered by the rate hook in the park's place and held by the batch or the group, which parks the run once its siblings in flight settled (ADR-0061 decision 1; ADR-0063 Appendix M U2); the saga throws it before the step's failure is recorded and the holder keeps it off its failure holder, so it never reaches the recorder's failed.BudgetEnded: a budget's end is a park, never a failure (ADR-0066 D04, D05): the reason i.budget.signal aborts with at the deadline (the function's kill less the platform's reserve), folded into i.stop, so a call in flight ends with it and a loop throws it; a throw while the signal is aborted parks the step on a continue wait and the step runs again in a fresh invocation, so no signature is ever formed from it.WaveBudgetEnded: a chunk's or a member's throw under the fired budget inside an open batch wave or a ctx.all group, answered by the budget hook in the park's place and held by the batch or the group, which parks the run once on a continue wait once its siblings settled (ADR-0066 D05, extending ADR-0061 decision 1); the saga throws it before the step's failure is recorded and the holder keeps it off its failure holder, so it never reaches the recorder's failed.SagaScanEnded: how a scan of a redrive that invalidates steps hands the remembered steps back, never a failure (ADR-0051 §12).