# GATEWAY_RESPONSE_INVALID

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

What GATEWAY_RESPONSE_INVALID means, why GatewayError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.

Source: https://ensforge.com/docs/reference/errors/GATEWAY_RESPONSE_INVALID

<ErrorMeta errorClass="GatewayError" href="/docs/reference/errors/gateway-error" package="@ensforge/sdk" />

## What happened [#what-happened]

The off-chain gateway returned an invalid response.

## What to show users [#what-to-show-users]

| Title | Message | Action |
| --- | --- | --- |
| Lookup failed | The service that stores this name's data returned invalid data. |  |

## Retry safety [#retry-safety]

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

## Actions that throw it [#actions-that-throw-it]

| Action | When |
| --- | --- |
| [`dns.claim`](/docs/reference/sdk/dns/claim) | when the proof cannot be fetched. |
| [`dns.getOffchainResolver`](/docs/reference/sdk/dns/get-offchain-resolver) | when the DNSSEC gateway fails. |
| [`dns.getProof`](/docs/reference/sdk/dns/get-proof) | when the DNSSEC gateway fails. |
| [`dns.getStatus`](/docs/reference/sdk/dns/get-status) | when the DNSSEC gateway fails. |
| [`primaryName.get`](/docs/reference/sdk/primary-name/get) | when an off-chain gateway fails. |
| [`record.get`](/docs/reference/sdk/record/get) | when an off-chain gateway fails. |
| [`record.getAddress`](/docs/reference/sdk/record/get-address) | when an off-chain gateway fails. |
| [`record.getAvatar`](/docs/reference/sdk/record/get-avatar) | with `strict` when NFT metadata cannot be loaded. |
| [`record.getContentHash`](/docs/reference/sdk/record/get-content-hash) | when an off-chain gateway fails. |
| [`record.getText`](/docs/reference/sdk/record/get-text) | when an off-chain gateway fails. |
| [`resolver.resolve`](/docs/reference/sdk/resolver/resolve) | when an off-chain gateway fails. |

## Catch it [#catch-it]

`Errors.hasCode("GATEWAY_RESPONSE_INVALID")` narrows to this error. See [Handle errors](/docs/sdk/handle-errors).