ErrLookup › encode/httpx

encode/httpx

A next generation HTTP client for Python. 🦋 · Python · 23 source files

Analyzed at b5addb64f0 on 2026-08-04. 65 documented errors.

Code / MessageTypeSeverityTags
Malformed Digest WWW-Authenticate header
exception error digest-auth, authentication, protocol
Digest auth-int support is not yet implemented
exception error digest-auth, authentication, unsupported
Unexpected qop value "{qop!r}" in digest auth
exception error digest-auth, authentication, protocol
Invalid "auth" argument: {auth!r}
validation error authentication, config, type-error
Invalid URL in location header: {exc}.
exception error redirects, protocol, url
Using http2=True, but the 'h2' package is not installed. Mak
exception error http2, config, dependency
Cannot send a request, as the client has been closed.
exception error lifecycle, client, sync
Exceeded maximum allowed redirects.
exception error redirects, loop, sync
Attempted to send an async request with a sync Client instan
exception error sync-async, streaming, sync
Cannot open a client instance more than once.
exception error lifecycle, context-manager, sync
Cannot reopen a client instance, once it has been closed.
exception error lifecycle, context-manager, sync
Attempted to send a sync request with an AsyncClient instanc
exception error sync-async, streaming, async
httpx.Timeout must either include a default, or set all four
validation error timeout, config
Unknown scheme for proxy URL {url!r}
validation error proxy, config
Attempted to read or stream some content, but the content ha
exception error streaming, content, redirect
Attempted to read or stream content, but the stream has been
exception error streaming, pickle, serialization, multiprocessing
Unexpected type for 'content', {type(content)!r}
validation error content, type-checking, request-body, validation
{exc}
exception error decoding, deflate, content-encoding, server-error
Using 'BrotliDecoder', but neither of the 'brotlicffi' or 'b
exception error brotli, dependencies, content-encoding, environment
Using 'ZStandardDecoder', ...Make sure to install httpx usin
exception error zstd, zstandard, dependencies, content-encoding
Zstandard data is incomplete
exception error decoding, zstd, truncation, content-encoding
The .request property has not been set.
exception warning exceptions, request, api-misuse, error-handling
Header value must be str or bytes, not {type(value)}
validation error headers, type-checking, validation, request-body
{key}
exception warning headers, key-access, validation
Attempted to access streaming request content, without havin
exception warning streaming, request-content, api-misuse
'.elapsed' may only be accessed after the response has been
exception warning response, timing, api-misuse, mocking
The request instance has not been set on this response.
exception error response, request, mocking, runtime-error
Attempted to access streaming response content, without havi
exception error streaming, response, response-not-read, runtime-error
Setting encoding after `text` has been accessed is not allow
validation error encoding, response, value-error, text-decoding
Cannot call `raise_for_status` as the request instance has n
exception error response, raise-for-status, request, mocking, runtime-error
{error_type} '{0.status_code} {0.reason_phrase}' for url '{0
http error http-status, redirect, raise-for-status, http-status-error
{error_type} '{0.status_code} {0.reason_phrase}' for url '{0
http error http-status, raise-for-status, http-status-error, client-error, server-error
Attempted to read or stream some content, but the content ha
exception error streaming, stream-consumed, response, request-body, runtime-error
Attempted to read or stream content, but the stream has been
exception error streaming, stream-closed, response, context-manager, runtime-error
Attempted to call a sync iterator on an async stream.
exception error sync-async, streaming, asyncio, runtime-error
Attempted to call a sync close on an async stream.
exception error sync-async, streaming, asyncio, close, runtime-error
Attempted to call an async iterator on a sync stream.
exception error sync-async, streaming, asyncio, runtime-error
Attempted to call an async close on a sync stream.
exception error sync-async, streaming, asyncio, close, runtime-error
Multiple cookies exist with name={name}
exception warning cookies, cookie-conflict, response, client
{name}
exception error cookies, key-error, response, client
Invalid type for name. Expected str, got {type(name)}: {name
validation error multipart, type-error, form-data, validation
Invalid type for value. Expected primitive type, got {type(v
validation error multipart, type-error, form-data, serialization, validation
Multipart file uploads require 'io.BytesIO', not 'io.StringI
validation error multipart, file-upload, type-error, encoding, validation
Multipart file uploads must be opened in binary mode, not te
validation error multipart, file-upload, type-error, binary-mode, validation
Using SOCKS proxy, but the 'socksio' package is not installe
exception critical proxy, socks, dependency, sync, network
Proxy protocol must be either 'http', 'https', 'socks5', or
validation error proxy, config, sync, network, validation
Cannot use an async handler in a sync Client
exception error mock, testing, async, sync, type-mismatch
URL too long
validation error url, validation, limits, config
Invalid non-printable ASCII character in URL, {char!r} at po
validation error url, security, injection, validation, sanitization
URL component '{key}' too long
validation error url, validation, limits
Invalid non-printable ASCII character in URL {key} component
validation error url, security, injection, validation, sanitization
Invalid URL component '{key}'
validation error url, validation, config, parsing
Invalid IPv4 address: {host!r}
validation error url, ipv4, validation, network
Invalid IPv6 address: {host!r}
validation error url, ipv6, validation, network
Invalid IDNA hostname: {host!r}
validation error url, idna, hostname, validation, i18n
Invalid port: {port!r}
validation error url, port, validation, config
For absolute URLs, path must be empty or begin with '/'
validation error url, path, rfc3986, validation
Relative URLs cannot have a path starting with '//'
validation error url, path, rfc3986, relative-url, validation
Relative URLs cannot have a path starting with ':'
validation error url, path, rfc3986, relative-url, validation
{key!r} is an invalid keyword argument for URL()
exception error url, api-misuse, validation, typeerror
Argument {key!r} must be {expected} but got {seen}
exception error url, type-mismatch, validation, typeerror
Invalid type for url. Expected str or httpx.URL, got {type(
exception error url, type-mismatch, validation, typeerror, api-misuse
QueryParams are immutable since 0.18.0. Use `q = q.merge(...
exception error httpx, query-params, immutability, migration, runtime-error
QueryParams are immutable since 0.18.0. Use `q = q.set(key,
exception error httpx, query-params, immutability, migration, runtime-error
Proxy keys should use proper URL forms rather than plain sch
exception error httpx, url-pattern, proxy, mounts, config, validation