OFFCHAIN_LOOKUP_INVALID
What OFFCHAIN_LOOKUP_INVALID means, why GatewayError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
GatewayErrorNot retryable
@ensforge/sdk
What happened
The resolver requested an off-chain lookup from an unexpected sender.
What to show users
| Title | Message | Action |
|---|---|---|
| Lookup failed | This name's resolver made an invalid off-chain request. |
Retry safety
Retrying the same call fails the same way until the cause is fixed (retryable: false).
Actions that throw it
| Action | When |
|---|---|
primaryName.get | when an off-chain gateway fails. |
record.get | when an off-chain gateway fails. |
record.getAddress | when an off-chain gateway fails. |
record.getContentHash | when an off-chain gateway fails. |
record.getText | when an off-chain gateway fails. |
resolver.resolve | when an off-chain gateway fails. |
Catch it
Errors.hasCode("OFFCHAIN_LOOKUP_INVALID") narrows to this error. See Handle errors.
Was this page helpful?