@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Function isRetryableProviderError

    • Whether a provider error is a retryable availability failure (operator or indexer temporarily unreachable) rather than a terminal one.

      Retryable:

      • ProviderUnavailableError — already-classified 5xx/429/unavailable (see e.g. https | RestArkProvider.getInfo's non-2xx branch);
      • FetchError — transport-level fetch rejection (DNS failure, connection refused, TLS/CORS), which also carries undici timeouts as its cause;
      • isFetchTimeoutError — header/body timeouts that surface directly.

      Everything else (4xx, invalid JSON, schema violations, network mismatch, unsupported network) is terminal and returns false.

      NOTE (Step 2, Scope 2): this classifies the errors currently produced by the boot-critical getInfo path. Normalizing the indexer's per-branch !res.ok throws and the remaining Ark RPC methods into ProviderUnavailableError is the broader Scope-2 work still pending.

      Parameters

      • error: unknown

      Returns boolean