Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforge

GATEWAY_RESPONSE_INVALID

What GATEWAY_RESPONSE_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 off-chain gateway returned an invalid response.

What to show users

TitleMessageAction
Lookup failedThe service that stores this name's data returned invalid data.

Retry safety

Retrying the same call fails the same way until the cause is fixed (retryable: false).

Actions that throw it

ActionWhen
dns.claimwhen the proof cannot be fetched.
dns.getOffchainResolverwhen the DNSSEC gateway fails.
dns.getProofwhen the DNSSEC gateway fails.
dns.getStatuswhen the DNSSEC gateway fails.
primaryName.getwhen an off-chain gateway fails.
record.getwhen an off-chain gateway fails.
record.getAddresswhen an off-chain gateway fails.
record.getAvatarwith strict when NFT metadata cannot be loaded.
record.getContentHashwhen an off-chain gateway fails.
record.getTextwhen an off-chain gateway fails.
resolver.resolvewhen an off-chain gateway fails.

Catch it

Errors.hasCode("GATEWAY_RESPONSE_INVALID") narrows to this error. See Handle errors.

Was this page helpful?