RPC_REQUEST_FAILED
What RPC_REQUEST_FAILED means, why NetworkError throws it, what to show users and how to fix it in ensforge. Also covers retry safety.
NetworkErrorRetryable
@ensforge/sdk
What happened
The RPC request failed.
What to show users
| Title | Message | Action |
|---|---|---|
| Connection problem | Could not reach the network. | Check your connection and try again. |
Retry safety
Retrying the same call can succeed (retryable: true).
Actions that throw it
| Action | When |
|---|---|
approval.getDelegate | when the RPC request fails. |
approval.getOperator | when the RPC request fails. |
approval.getToken | when the RPC request fails. |
dns.getOffchainResolver | when the RPC request fails. |
dns.getProof | when the RPC request fails. |
dns.getRecords | when the RPC request fails. |
dns.getStatus | when the RPC request fails. |
event.decode | when the RPC request fails. |
event.get | when the RPC request fails. |
migration.get | when the RPC request fails. |
name.get | when the RPC request fails. |
name.getLabel | when the RPC request fails. |
permission.check | when the RPC request fails. |
permission.get | when the RPC request fails. |
plan.get | when the RPC request fails. |
plan.list | when the RPC request fails. |
plan.reconcile | when the RPC request fails. |
primaryName.get | when the RPC request fails. |
record.get | when the RPC request fails. |
record.getAddress | when the RPC request fails. |
record.getAvatar | when the RPC request fails. |
record.getContentHash | when the RPC request fails. |
record.getText | when the RPC request fails. |
registration.getCommitmentStatus | when the RPC request fails. |
registration.getParameters | when the RPC request fails. |
registration.getPrice | when the RPC request fails. |
registration.getRenewalPrice | when the RPC request fails. |
registration.isAvailable | when the RPC request fails. |
registry.get | when the RPC request fails. |
resolver.get | when the RPC request fails. |
resolver.getLink | when the RPC request fails. |
role.get | when the RPC request fails. |
wrapper.getFuses | when the RPC request fails. |
Any action can fail with NetworkError: it is part of Errors.CommonError.
Catch it
Errors.hasCode("RPC_REQUEST_FAILED") narrows to this error. See Handle errors.
Was this page helpful?