Skip to main content

InvalidResponseBodyError

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.

Hierarchy

Index

Methods

Methods

__init__

  • __init__(response): None
  • Initialize the error from an unparsable response.


    Parameters

    • response: HttpResponse

      The HTTP response whose body could not be parsed.

    Returns None

Page Options