Class: NetworkRateLimitError
indicates that the upstream API is rate-limiting requests (HTTP 429). back off!
built-in rate limiter tries to prevent this from ever firing.
Extends
Constructors
Constructor
ts
new NetworkRateLimitError(
network: string,
message: string,
options?: object): NetworkRateLimitError;Parameters
| Parameter | Type |
|---|---|
network | string |
message | string |
options | { cause?: unknown; retryAfterMs?: number; url?: string; } |
options.cause? | unknown |
options.retryAfterMs? | number |
options.url? | string |
Returns
NetworkRateLimitError
Overrides
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
network | readonly | string | NetworkAPIError.network |
retryAfterMs | readonly | number | undefined | - |
status | readonly | number | undefined | NetworkAPIError.status |
url? | readonly | string | NetworkAPIError.url |