INDEXER_BEHIND
What INDEXER_BEHIND means, why IndexerError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.
IndexerErrorRetryable
@ensforge/sdk
What happened
The indexer is behind the chain.
What to show users
| Title | Message | Action |
|---|---|---|
| Data updating | Recent changes may take a moment to appear. | Refresh shortly. |
How to fix
Retry shortly, or read on-chain instead.
Retry safety
Retrying the same call can succeed (retryable: true).
Actions that throw it
| Action | When |
|---|---|
indexer.getEvents | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getHistory | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getName | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getNamesByExpiry | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getNamesForAddress | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getNamespace | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getPermissions | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getPrimaryName | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getRecords | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getRegistry | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getRegistryLabels | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getResolver | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getResolverLinks | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getResolverRoles | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getResolvers | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getStatus | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.getSubnames | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.lookup | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
indexer.search | when the indexer is unavailable, rate limiting, behind, rejects the request or answers unexpectedly. |
Catch it
Errors.hasCode("INDEXER_BEHIND") narrows to this error. See Handle errors.
Was this page helpful?