ErrLookup › encode/httpx

encode/httpx

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

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

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