Skip to content

Interface: RustFetchError ​

Defined in: api/rust-fetch.d.ts:509

Extends ​

  • Error

Properties ​

attempts? ​

optional attempts?: number

Defined in: api/rust-fetch.d.ts:512


body? ​

optional body?: string

Defined in: api/rust-fetch.d.ts:522

HttpError: response body as text


cause? ​

optional cause?: unknown

Defined in: api/rust-fetch.d.ts:513

Overrides ​

Error.cause


issues? ​

optional issues?: readonly StandardSchemaIssue[]

Defined in: api/rust-fetch.d.ts:538

ValidationError: what the schema reported


kind ​

kind: RustFetchErrorKind

Defined in: api/rust-fetch.d.ts:516


maxEventBytes? ​

optional maxEventBytes?: number

Defined in: api/rust-fetch.d.ts:534

NetworkError for a Server-Sent Event larger than maxEventBytes: the limit


maxLineBytes? ​

optional maxLineBytes?: number

Defined in: api/rust-fetch.d.ts:532

NetworkError for a streamed line longer than maxLineBytes: the limit


maxPendingRequests? ​

optional maxPendingRequests?: number

Defined in: api/rust-fetch.d.ts:530

NetworkError for a request refused by maxPendingRequests: the limit


maxQueuedBytes? ​

optional maxQueuedBytes?: number

Defined in: api/rust-fetch.d.ts:550

NetworkError from WebSocketConnection.send() with a full queue: the limit reached


maxQueuedMessages? ​

optional maxQueuedMessages?: number

Defined in: api/rust-fetch.d.ts:548

NetworkError from WebSocketConnection.send() with a full queue: the limit reached


maxResponseBytes? ​

optional maxResponseBytes?: number

Defined in: api/rust-fetch.d.ts:528

NetworkError for a response larger than maxResponseBytes: the limit


message ​

message: string

Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from ​

Error.message


method? ​

optional method?: string

Defined in: api/rust-fetch.d.ts:510


name ​

name: RustFetchErrorKind

Defined in: api/rust-fetch.d.ts:515

Overrides ​

Error.name


origin? ​

optional origin?: string

Defined in: api/rust-fetch.d.ts:542

CircuitOpenError: the origin whose circuit refused the request


parameter? ​

optional parameter?: string

Defined in: api/rust-fetch.d.ts:526

InvalidInputError: the offending parameter


phase? ​

optional phase?: "connect" | "response" | "idle" | "total"

Defined in: api/rust-fetch.d.ts:546

TimeoutError: which timer expired (deadlineMs uses total)


reason? ​

optional reason?: unknown

Defined in: api/rust-fetch.d.ts:536

CancelledError: the signal's abort reason (controller.abort(reason); an AbortError by default, a TimeoutError for AbortSignal.timeout()). Also cause.


retryAfterMs? ​

optional retryAfterMs?: number

Defined in: api/rust-fetch.d.ts:544

CircuitOpenError: milliseconds until recovery may be probed


retryBudgetExhausted? ​

optional retryBudgetExhausted?: boolean

Defined in: api/rust-fetch.d.ts:540

true when the client's retryBudget refused to retry this failure (the error is the last attempt's)


stack? ​

optional stack?: string

Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.stack


status? ​

optional status?: number

Defined in: api/rust-fetch.d.ts:518

HttpError: response status


statusText? ​

optional statusText?: string

Defined in: api/rust-fetch.d.ts:520

HttpError: response status text


timeoutMs? ​

optional timeoutMs?: number

Defined in: api/rust-fetch.d.ts:524

TimeoutError: the timeout that was exceeded


timings? ​

optional timings?: RequestTimings

Defined in: api/rust-fetch.d.ts:514


url? ​

optional url?: string

Defined in: api/rust-fetch.d.ts:511

Released under the MIT or Apache-2.0 license.