AGENT_UNAVAILABLE

The compute fleet is briefly unavailable. Try again shortly.

HTTP status: 503

Why this happens

The compute fleet is briefly unavailable.

How to recover

Retry shortly. Persistent failures should be reported with the request id.

Branching on this code

TypeScript
import { ApiError } from "@firecase/sdk";

try {
  await firecase.someCall();
} catch (e) {
  if (e instanceof ApiError && e.code === "AGENT_UNAVAILABLE") {
    // recover here
  }
  throw e;
}