psf/requests

A simple, yet elegant, HTTP library. · Python · ★ 54,203

Analyzed at 414f0513c3 on 2026-07-31. 37 documented errors.

Code / MessageTypeSeverityTags
Files must be provided.
validation error python, requests, multipart, file-upload, validation
Data must not be a string.
validation error python, requests, multipart, form-data, validation
Unsupported event specified, with event name "{event}"
validation error python, requests, hooks, api-usage
Invalid URL {url!r}: No scheme supplied. Perhaps you meant h
exception error python, requests, url, missing-schema, validation
Invalid URL {url!r}: No host supplied
exception error python, requests, url, invalid-url, configuration
URL has an invalid label.
exception error python, requests, url, idna, unicode, validation
Streamed bodies and files are mutually exclusive.
exception error python, requests, streaming, multipart, request-body
chunk_size must be an int, it is instead a {type(chunk_size)
validation error python, requests, iter-content, type-error, streaming
The content for this response was already consumed
exception error python, requests, streaming, response-body, stream-consumed
{self.status_code} Client Error: {reason} for url: {self.url
http error http, client-error, raise-for-status, network
{self.status_code} Server Error: {reason} for url: {self.url
http error http, server-error, retry, raise-for-status, network
Cookie headers should be added with add_unredirected_header(
exception warning cookies, cookiejar, internal-api, not-implemented
name={name!r}, domain={domain!r}, path={path!r}
exception error cookies, keyerror, session, lookup
There are multiple cookies with name, {name!r}
exception error cookies, cookie-conflict, session, duplicates
create_cookie() got unexpected keyword arguments: {list(bada
validation error cookies, typeerror, create-cookie, api-misuse
max-age: {morsel['max-age']} must be integer
validation error cookies, morsel, max-age, typeerror, parsing
You can only merge into CookieJar
validation error cookies, cookiejar, valueerror, session, api-misuse
Auth hooks must be callable.
validation error auth, authbase, not-implemented, custom-auth
Missing dependencies for SOCKS support.
exception error network, proxy, socks, dependencies, python
Could not find a suitable TLS CA certificate bundle, invalid
exception error tls, certificates, configuration, python, https
Could not find the TLS certificate file, invalid path: {conn
exception error tls, client-certificates, mtls, configuration, python
Could not find the TLS key file, invalid path: {conn.key_fil
exception error tls, client-certificates, mtls, configuration, python
Please check proxy URL. It is malformed and could be missing
exception error network, proxy, url-parsing, configuration, python
Invalid timeout {timeout}. Pass a (connect, read) timeout tu
validation error timeout, api-usage, python, configuration
'{type(self).__name__}' object has no attribute '{key}'
exception error python, attribute-error, status-codes, api-usage
cannot encode objects that are not 2-tuples
validation error python, validation, data-structures, api-usage
Invalid percent-escape sequence: '{h}'
exception error url, encoding, invalid-url, python, requests
Header part ({header_part!r}) from {header} must be of type
validation error headers, type-error, validation, python, requests
Invalid leading whitespace, reserved character(s), or return
validation error headers, security, header-injection, validation, python, requests
An error occurred when rewinding request body for redirect.
exception error redirect, upload, streaming, body-rewind, python, requests
Unable to rewind request body for redirect.
exception error redirect, upload, streaming, chunked, python, requests
Exceeded {self.max_redirects} redirects.
exception error redirect, redirect-loop, session, cookies, python, requests
You can only send PreparedRequests.
validation error session, prepared-request, api-misuse, python, requests
No connection adapters were found for {url!r}
exception error url, scheme, adapter, invalid-schema, python, requests
Unable to find acceptable character detection dependency (ch
console warning dependency, import, encoding, charset, python, requests
Old version of cryptography ({cryptography_version_list}) ma
console info dependency, cryptography, tls, performance, python, requests
urllib3 ({urllib3.__version__}) or chardet ({chardet_version
console warning python, requests, urllib3, dependency-version, charset-normalizer, import-time-warning