Skip to main content

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
  • Initialize a new instance.


    Parameters

    • response: impit.Response

      The response which failed to be parsed.

    Returns None

Page Options