LayerHopDocsLaunch app (opens in a new tab)

MARKET_UNAVAILABLE

Market data unavailable: The market data for this chain can't be read right now: its indexer is unreachable, or this deployment has none for the chain.

HTTP status Retry
503 with backoff

Where it comes from: GET /v1/market/{chain}/… (market data API, only when it is enabled).

Causes#

  • LayerHop's indexer for the chain is restarting, catching up or briefly overloaded.
  • The deployment you are calling has no indexer configured for that chain (GET /v1/market/chains shows available: false).

How to fix#

  • Retry after a few seconds with backoff; a failed read is remembered for about 5 seconds, so faster retries get the same answer.
  • Check GET /v1/market/chains for the chains this deployment serves.

Example response#

JSON
{
  "error": {
    "code": "MARKET_UNAVAILABLE",
    "message": "Market data for Berachain is temporarily unavailable; retry shortly",
    "requestId": "0d5e1f6a-3b2c-4d1e-8f9a-7b6c5d4e3f21",
    "docsUrl": "https://docs.layerhop.com/errors/MARKET_UNAVAILABLE"
  }
}

See Error handling & retries for a retry strategy, and the error catalog for every code.

Last updated