INDEXER_NOT_CONFIGURED
What INDEXER_NOT_CONFIGURED means, why ConfigError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
ConfigErrorNot retryable
@ensforge/sdk
What happened
This action needs an indexer.
What to show users
| Title | Message | Action |
|---|---|---|
| Search unavailable | Name data is not available in this app. |
How to fix
Pass an indexer to Ensforge.create, e.g. indexer: bigname() from @ensforge/sdk/indexer.
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 client has no indexer. |
indexer.getHistory | when the client has no indexer. |
indexer.getName | when the client has no indexer. |
indexer.getNamesByExpiry | when the client has no indexer. |
indexer.getNamesForAddress | when the client has no indexer. |
indexer.getNamespace | when the client has no indexer. |
indexer.getPermissions | when the client has no indexer. |
indexer.getPrimaryName | when the client has no indexer. |
indexer.getRecords | when the client has no indexer. |
indexer.getRegistry | when the client has no indexer. |
indexer.getRegistryLabels | when the client has no indexer. |
indexer.getResolver | when the client has no indexer. |
indexer.getResolverLinks | when the client has no indexer. |
indexer.getResolverRoles | when the client has no indexer. |
indexer.getResolvers | when the client has no indexer. |
indexer.getStatus | when the client has no indexer. |
indexer.getSubnames | when the client has no indexer. |
indexer.lookup | when the client has no indexer. |
indexer.search | when the client has no indexer. |
Any action can fail with ConfigError: it is part of Errors.CommonError.
Catch it
Errors.hasCode("INDEXER_NOT_CONFIGURED") narrows to this error. See Handle errors.
Was this page helpful?