IndexerError
What IndexerError means, which codes it carries and how to catch it in ensforge. Lists its fields and every code. Includes how to catch it.
Error class6 codes · @ensforge/sdk
An indexer request failed, or the indexer cannot serve the query (INDEXER_UNSUPPORTED).
Fields
| Field | Type | Description |
|---|---|---|
indexerCode | string | The indexer's own error code, e.g. bigname's rate_limited. |
status | number | HTTP status of the failed request. |
route | string | Route that failed, e.g. /v1/names/{name}. |
source | string | Adapter that failed, e.g. bigname. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
INDEXER_UNAVAILABLE | The indexer is unavailable. | Yes |
INDEXER_RATE_LIMITED | The indexer is rate limiting requests. | Yes |
INDEXER_RESPONSE_INVALID | The indexer returned an unexpected response. | No |
INDEXER_REQUEST_REJECTED | The indexer rejected the request. | No |
INDEXER_BEHIND | The indexer is behind the chain. | Yes |
INDEXER_UNSUPPORTED | The indexer does not support this query. | No |
Catch it
Effect.catchTag("IndexerError", …) or error instanceof Errors.IndexerError. See Handle errors.
Was this page helpful?