Skip to main content
Version: 0.6

InvalidResponseBodyError

Error caused by the response body failing to be parsed.

This error exists for the quite common situation, where only a partial JSON response is received and an attempt to parse the JSON throws an error. In most cases this can be resolved by retrying the request. We do that by identifying this error in the _HTTPClient.

Hierarchy

Index

Methods

Methods

__init__

  • __init__(response): None
  • Create the InvalidResponseBodyError instance.


    Parameters

    • response: requests.models.Response

      The response which failed to be parsed

    Returns None

Page Options