INDEXER_RESPONSE_INVALID
What INDEXER_RESPONSE_INVALID means, why IndexerError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
IndexerErrorNot retryable
@ensforge/sdk
What happened
The indexer returned an unexpected response.
What to show users
| Title | Message | Action |
|---|---|---|
| Data unavailable | Name data could not be loaded. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
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_RESPONSE_INVALID") narrows to this error. See Handle errors.
Was this page helpful?