STELLAR_RPC_<NET>) and of Horizon-compatible URLs (PATH_ROUTING_API_<NET>). The full rules are in Provider failover; the parts that matter during an outage:
- A provider that answers
429, a5xx, or a200with no JSON-RPC envelope (an empty or cut-off body) ends that request with503 service_unavailableandRetry-After: 30, and cools down for 70 seconds (RPC_PROVIDER_COOLDOWN_MS, theRetry-Afterplus the 40-second request deadline). The client’s retry pins the next provider. A cooling provider is still tried when every other one fails. - A timeout is a
503too, but starts no cooldown, so a provider that hangs keeps being probed first. That is the case to act on by hand. - A provider outage becomes a retryable
503, never a wrong answer about an account, and a send never goes to a second provider.
Blast radius
- One provider down, list of two or more: some requests get a
503and succeed on retry. No action is needed unless it lasts. - Every provider down, or a single provider: every read on that network fails with
503. Closes cannot be planned or built. Nothing is lost: a close in progress resumes once reads come back (Recovery). - Only DeFi detection or token quotes down (OctoPos, Soroswap, xBull): those have one provider each. Closes still run; position detection falls back to a classic-only close and token conversion is unavailable.
- API deploys: an RPC outage that the serving revision shares does not stop a deploy. The smoke test records
/health/deepasupstreamand the run warns; see Bad deploy for the check once the provider recovers.
Steps
-
Find which provider fails:
Expected while healthy:
"state": "up"everywhere. During an outage, the failing upstream showsdegraded(some providers failing) ordown(all), withlastErrorClasssuch asrate_limited,unavailable,timeoutorbad_response. Probe results are cached for one minute (five forpathsanddefi). Check the provider’s own status page. -
Rate limiting or short errors: wait. The cooldown already routes around it, and the outage shows as
degraded, notdown. -
A provider that times out or stays down for more than 15 minutes: take it out of the list, keeping the order of the rest. The value contains commas, so use the delimiter syntax:
Each URL keeps its own auth header by position: if you remove the first URL, move its
_2header variables to the unsuffixed names in the same command. A list is checked at boot (https, no duplicates); a bad one refuses to start, and the previous revision keeps serving. Expected:Done.and the new revision serving. - Every provider down: add a working public provider to the list in the same way, or wait for the provider. If it lasts, post the public update from Incident response.
- When the provider recovers, restore the original list with the same command.
Confirm the fix
"state": "up" for rpc, horizon and paths, and 200 from /health/deep. Then plan a testnet close on the site: it loads without a 503.