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

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

FieldTypeDescription
statusnumberHTTP status, when the transport is HTTP.

Codes

CodeMeaningRetryable
RPC_REQUEST_FAILEDThe RPC request failed.Yes
RPC_TIMEOUTThe RPC request timed out.Yes
RATE_LIMITEDThe RPC provider is rate limiting requests.Yes
LOG_RANGE_TOO_LARGEThe 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?