INVALID_CONTENT_HASH
What INVALID_CONTENT_HASH 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 content hash.
What to show users
| Title | Message | Action |
|---|---|---|
| Invalid content link | This content link is not valid. |
How to fix
Use a URI such as ipfs://…, ipns://…, bzz://… or ar://….
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
record.set | for invalid input. |
Catch it
Errors.hasCode("INVALID_CONTENT_HASH") narrows to this error. See Handle errors.
Was this page helpful?