NetworkError
What NetworkError means, which codes it carries and how to catch it in ensforge. The RPC provider could not be reached or rejected the request.
Error class4 codes · @ensforge/sdk
The RPC provider could not be reached or rejected the request. Usually worth retrying.
Any action can fail with NetworkError: it is part of Errors.CommonError.
Fields
| Field | Type | Description |
|---|---|---|
status | number | HTTP status, when the transport is HTTP. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
RPC_REQUEST_FAILED | The RPC request failed. | Yes |
RPC_TIMEOUT | The RPC request timed out. | Yes |
RATE_LIMITED | The RPC provider is rate limiting requests. | Yes |
LOG_RANGE_TOO_LARGE | The RPC provider's eth_getLogs limits make this block range too expensive. | Yes |
Catch it
Effect.catchTag("NetworkError", …) or error instanceof Errors.NetworkError. See Handle errors.
Was this page helpful?