Repository navigation
Description
Found while working on #4943 (step 1).
Defect. A live connector failure is meant to be classified by the HTTP status its error carries: connectorFailureOf in services/platform/lib/engine/core/record/failure.ts maps 401/403 to CONNECTOR_AUTH, 404 to CONNECTOR_NOT_FOUND and 429 to CONNECTOR_RATE_LIMITED. reasonFamily puts 429 and 5xx in connector_unavailable, which does not count toward pausing a schedule. In production, though, the status never reaches the classifier:
- The durable runtime classifies the dispatcher's
LIVE_BODY_FAILEDConnectorError: see the catch inservices/platform/backend/domains/automations/shim.tsthat callsconnectorFailureOf, and the place inservices/platform/lib/connectors/dispatcher.tsthat wraps a live body's error. The wrapper has nostatus, and nothing copies one onto it; the body's status survives only oncause. So a live body that throws an error withstatus: 429is classifiedCONNECTOR_FAILED, familyconnector_error, which counts toward pausing a schedule. - The shim's test that classifies a busy service hides this, because it puts
statuson the wrapper withObject.assign, which the real dispatcher never does. - The yaml-js live bodies throw plain errors with no
statusat all. Slack's, for one, put the HTTP status only in the message text (Slack <action> failed (429): rate limited by Slack — retry later), so even the in-process executor classifies a Slack rate limitCONNECTOR_FAILED.
A connector scenario (#4943) that names a status is classified by that status. Once a connector ships a scenario with a 401, 404, 429 or 5xx, its tests and its live runs disagree until this is fixed.
Asked.
- Keep a live body's status through the dispatcher, so that a vendor's 429 or 5xx is classified as unavailable in the durable runtime as it is in the in-process one. Either copy a numeric
statusfrom the body's error onto the wrapper, or have the shim read it fromcause. - Let the live bodies report the vendor's status, for example from
ctx.http's response, or by throwing an error withstatus. - Then let the scenarios that stand for these answers carry the same
status. Until they do, the Slack scenario proof inservices/platform/lib/shared/schemas/shipped-connectors.test.tsfails.
Regression test: a live body that answers a 429 fails as CONNECTOR_RATE_LIMITED, family connector_unavailable, through the real dispatcher and the durable shim (not a hand-built wrapper), and in the in-process executor.
Activity
test(platform): lock a vendor's 429 from a live body as rate limited
docs(platform): say how a live body reports the vendor's status
tale-code-bot commentedon Nov 1, 2026
Split while working on this issue (task TALE-367).
fix/live-connector-vendor-status):LIVE_BODY_FAILED;connector_unavailable;fix(platform): classify a vendor's 429 from a live body as rate limited
docs: write the v0.5.96 release notes
docs: write the v0.5.96 release notes