INVALID_RECORD_VALUE
What INVALID_RECORD_VALUE means, why InvalidInputError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
InvalidInputErrorNot retryable
@ensforge/sdk
What happened
undefined is not a valid record value.
What to show users
| Title | Message | Action |
|---|---|---|
| Invalid value | One of the values is not valid. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
dns.claim | for invalid input. |
dns.setRecords | for invalid input, such as records that are not DNS wire format. |
event.get | for invalid input. |
indexer.getPermissions | for invalid input. |
indexer.lookup | for more than 1,000 inputs or none. |
indexer.search | when query is empty. |
migration.migrate | for invalid input. |
name.getLabel | when labelhash is not 32 bytes. |
name.setTtl | for invalid input. |
permission.setRecordAccess | for invalid input or an unconfirmed widening. |
plan.reconcile | for an unknown step or an unrelated transaction. |
record.set | for invalid input. |
registration.commit | for invalid input. |
registration.getCommitmentStatus | when the commitment is not 32 bytes. |
registration.register | for invalid input. |
registry.upgrade | for invalid input or an up-to-date registry. |
resolver.create | for invalid input, or a salt whose resolver already exists. |
resolver.link | for invalid input or a target without records. |
resolver.resolve | for an invalid name or calldata. |
resolver.upgrade | for invalid input or an up-to-date resolver. |
role.get | for invalid input or targets. |
role.grant | for invalid input or targets. |
role.revoke | for invalid input or targets. |
subname.create | for invalid input. |
subname.update | for invalid input. |
wrapper.setChildFuses | for invalid input or fuses. |
wrapper.setFuses | for invalid input or fuses. |
wrapper.wrap | for invalid input or fuses. |
batch | for a request that cannot be batched. |
Catch it
Errors.hasCode("INVALID_RECORD_VALUE") narrows to this error. See Handle errors.
Was this page helpful?