INDEXER_RATE_LIMITED
What INDEXER_RATE_LIMITED means, why IndexerError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
IndexerErrorRetryable
@ensforge/sdk
What happened
The indexer is rate limiting requests.
What to show users
| Title | Message | Action |
|---|---|---|
| Too many requests | Please wait a moment. | Try again shortly. |
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_RATE_LIMITED") narrows to this error. See Handle errors.
Was this page helpful?