RateLimitError
Hierarchy
- ApifyApiError
- RateLimitError
Index
Methods
__init__
Initialize the API error from a failed response.
Parameters
response: HttpResponse
The failed HTTP response from the Apify API.
attempt: int
The attempt number when the request failed (1-indexed).
optionalmethod: str = 'GET'
The HTTP method of the failed request.
Returns None
__new__
Dispatch to the subclass matching the response's HTTP status code, if any.
Parameters
response: HttpResponse
attempt: int
optionalmethod: str = 'GET'
Returns Self
Raised when the Apify API returns an HTTP 429 Too Many Requests response.
Rate-limited requests are retried automatically; this error is only raised after all retry attempts have been exhausted.