Skip to content
Docs

Errors

Retryable and non-retryable errors

Retry only when error.retryable is true; fix auth and input errors first.

Overview

Honor error.retryable when present. Retries without backoff amplify rate limits and credit spend.

Retry with backoff

  • rate_limit_exceeded
  • provider_unavailable
  • portfolio_unavailable, activity_unavailable, nft_unavailable, defi_unavailable, prices_unavailable, swap_unavailable, gas_unavailable, tx_unavailable
json
{
  "error": {
    "code": "portfolio_unavailable",
    "message": "Portfolio data is temporarily unavailable. Please retry.",
    "retryable": true
  }
}

Do not retry

  • Auth / policy: unauthorized, revoked_secret, forbidden, blacklisted, plan_chain_denied, plan_feature_denied, chain_disabled
  • Input / capability: invalid_argument, unsupported_capability, prices_batch_limit
  • Lifecycle: credits_exhausted, conflict, needs_wallet_sync, not_found, gone, not_implemented, plan limits

Maybe

  • internal — backoff once or twice, then escalate with x-request-id
  • simulation_failed — fix intent first; retrying the same failing call rarely helps
  • provider_error — often a bad custom RPC payload; inspect before looping

Practical backoff: Backoff strategy · Timeouts and retries.