InvalidResponseBodyError
Hierarchy
- ApifyClientError
- InvalidResponseBodyError
Index
Methods
Methods
__init__
Initialize the error from an unparsable response.
Parameters
response: HttpResponse
The HTTP response whose body could not be parsed.
Returns None
Error raised when a response body cannot be parsed.
This typically occurs when the API returns a partial or malformed JSON response, for example due to a network interruption. The client retries such requests automatically, so this error is only raised after all retry attempts have been exhausted.