RATE_LIMITED
What RATE_LIMITED means, why NetworkError throws it, what to show users and how to fix it in ensforge. Also covers retry safety and the actions that throw it.
NetworkErrorRetryable
@ensforge/sdk
What happened
The RPC provider is rate limiting requests.
What to show users
| Title | Message | Action |
|---|---|---|
| Too many requests | Please wait a moment. | Try again shortly. |
How to fix
Retry later, or use an RPC URL with a higher limit.
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("RATE_LIMITED") narrows to this error. See Handle errors.
Was this page helpful?