Bases: HTTPError
Body should be http.client.HTTPResponse
like
(have an fp attribute which returns raw chunks) for read_chunked().
Bases: PoolError
Raised when a request enters a pool after the pool has been closed.
Bases: TimeoutError
Raised when a socket timeout occurs while connecting to a server
Renamed to ProtocolError but aliased for backwards compatibility.
Bases: HTTPError
Raised when automatic decoding based on Content-Type fails.
Bases: HTTPWarning
Warned when an attempt is made to import a module with missing optional dependencies.
Bases: PoolError
Raised when a pool runs out of connections and no more are allowed.
Bases: PoolError
Raised when we try to add a connection to a full pool in blocking mode.
Bases: Exception
Base exception used by this module.
Bases: HTTPError
Raised by assert_header_parsing, but we convert it to a log.warning statement.
Bases: RequestError
Raised when an existing pool gets a request for a foreign host.
Bases: HTTPError
, IncompleteRead
Response length doesn’t match expected Content-Length
Subclass of http.client.IncompleteRead
to allow int value
for partial
to avoid creating large objects on streamed reads.
Bases: SecurityWarning
Warned when certain TLS/SSL configuration is not available on a platform.
Bases: SecurityWarning
Warned when making an unverified HTTPS request.
Bases: HTTPError
, IncompleteRead
Invalid chunk length in a chunked response.
Bases: HTTPError
The header provided was somehow invalid.
Bases: LocationValueError
Raised when get_host or similar fails to parse the URL input.
Bases: ValueError
, HTTPError
Raised when there is something wrong with a given URL input.
Bases: RequestError
Raised when the maximum number of retries is exceeded.
pool (HTTPConnectionPool
) – The connection pool
url (str) – The requested Url
reason (Exception
) – The underlying error
Bases: NewConnectionError
Raised when host name resolution fails.
Bases: ConnectTimeoutError
, HTTPError
Raised when we fail to establish a new connection. Usually ECONNREFUSED.
Bases: SecurityWarning
Warned when using unsupported SSL library
Bases: HTTPError
Base exception for errors caused within a pool.
Bases: HTTPError
Raised when something unexpected happens mid-request/response.
Bases: HTTPError
Raised when the connection to a proxy fails.
Bases: AssertionError
, URLSchemeUnknown
ProxyManager does not support the supplied scheme
Bases: ValueError
Fetching HTTPS resources through HTTPS proxies is unsupported
Bases: TimeoutError
, RequestError
Raised when a socket timeout occurs while receiving data from a server
Bases: PoolError
Base exception for PoolErrors that have associated URLs.
Bases: HTTPError
Used as a container for an error reason supplied in a MaxRetryError.
Bases: ProtocolError
, ValueError
Response needs to be chunked in order to read it as chunks.
Bases: HTTPError
Raised when SSL certificate fails in an HTTPS connection.
Bases: HTTPWarning
Warned when performing security reducing actions
Bases: SecurityWarning
Warned when system time is suspected to be wrong
Bases: HTTPError
Raised when a socket timeout error occurs.
Catching this error will catch both ReadTimeoutErrors
and ConnectTimeoutErrors
.
Bases: HTTPError
Raised when passing an invalid state to a timeout
Bases: LocationValueError
Raised when a URL input has an unsupported scheme.