aio-libs/aiohttp
Documented errors, page 2 of 3. Back to aio-libs/aiohttp
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| value argument must support collections.abc.AsyncIterable… | exception | error | payload, async, iterable, type-error |
| charset must not be in content_type argument | exception | error | aiohttp, web-response, constructor, content-type, charset |
| Domain must be str | validation | error | type-error, routing, subapp, domain |
| Unsupported body type %r | exception | error | aiohttp, web-response, body, payload-registry, serialization |
| Using chunked encoding is forbidden for HTTP/ | exception | error | aiohttp, web-response, chunked-encoding, http-1-0, streaming |
| Handshake error | http | error | websocket, handshake, sec-websocket-key, rfc6455 |
| bad content disposition type | exception | error | content-disposition, validation, header, rfc-2183 |
| Cannot add sub application to frozen application | exception | error | web, subapp, lifecycle, frozen |
| Security issue: Digest auth challenge contains empty… | exception | error | digest-auth, authentication, security, http, client-middleware |
| .url_for() is not supported by sub-application root | exception | error | routing, sub-app, url-for |
| SSL is not supported. | exception | error | gunicorn, ssl, deployment, environment, boot |
| chunked can not be set if Content-Length header is set | exception | error | client, request, http-headers, transfer-encoding, content-length, chunked |
| Inheritance class from ChainMapProxy is forbidden | exception | error | chainmap-proxy, inheritance, type-error, application, internal-api |
| Reader did not read all the data or it is malformed | exception | error | multipart, content-length, framing, stream-integrity |
| Unable to decode - content not cached. Call as_bytes()… | exception | error | payload, async, streaming, api-misuse |
| expected str, got | exception | error | form-data, type-error, urlencoded, serialization |
| Unsupported etag type | validation | error | aiohttp, web-response, etag, caching, type-error |
| Received message : is not WSMsgType.BINARY | exception | error | websocket, receive, typing, protocol, typeerror |
| text argument must be str (%r) | exception | error | aiohttp, web-response, constructor, text, type-error |
| Data after `Connection: close` | exception | error | http, parser, connection, protocol |
| Cannot combine AUTHORIZATION header with credentials… | validation | error | authentication, security, http-request, headers |
| Resolver requires aiodns library | exception | error | dns, dependencies, resolver, environment |
| ssl should be SSLContext, Fingerprint, or bool, got | exception | error | connector, ssl, type-error, tcp-connector |
| Prefix must be str | validation | error | web, subapp, routing, type-error |
| Only io.IOBase, multidict and (name, file) pairs allowed… | exception | error | form-data, type-error, multipart, validation |
| ' ' does not exist | exception | error | static-files, configuration, filesystem |
| fingerprint has invalid length | validation | error | ssl, tls, fingerprint, security, client |
| range not in acceptable format | validation | error | range, validation, fileresponse, http-header |
| Can not serialize value type: %r headers: %r value: %r | exception | error | form-data, serialization, multipart, payload, type-error |
| Named Pipes only available in proactor loop under windows | exception | error | aiohttp, web-runner, windows, named-pipe, event-loop |
| InvalidURL | exception | error | client, request, url, validation, usage |
| md5 and sha1 are insecure and not supported. Use sha256. | validation | error | ssl, tls, fingerprint, security, deprecation, client |
| Call .prepare() first | exception | error | websocket, lifecycle, ping, prepare |
| Prefix cannot be empty | validation | error | web, subapp, routing, validation |
| Bad line ending, expected CRLF | exception | error | http, parser, protocol, validation |
| Cannot connect to unix socket | exception | error | network, unix-socket, connector, connection-error |
| WebSocket connection is closed. | exception | error | websocket, lifecycle, receive, server, connection-lost |
| passing both Content-Type header and content_type or… | exception | error | aiohttp, web-response, constructor, content-type, headers |
| Reason cannot contain \r or \n | validation | error | security, response-splitting, header-injection, validation |
| ' ' is not a directory | exception | error | static-files, configuration, filesystem |
| Content length is set automatically | exception | error | aiohttp, web-response, content-length, read-only, body |
| Inheritance class from ClientSession is forbidden | validation | error | client-session, inheritance, api-design |
| Bad HTTP method in status line | exception | error | http, parser, request-line, tls, security |
| Reading after EOF | exception | error | multipart, stream-integrity, boundary, eof |
| Invalid default charset | exception | error | multipart, form-data, charset, security, input-validation |
| To decode nested multipart you need to use custom reader | validation | error | multipart, nested, form-data, parser |
| Invalid redirect URL origin | exception | error | redirect, url-validation, origin |
| Compress wbits must between 9 and 15, zlib does not support… | validation | error | websocket, compression, validation, deflate, value-error |
| either both host and port or none of them are allowed | exception | error | dns, connector, configuration, value-error |
| No proxies found for | exception | warning | proxy, environment, configuration, env-vars |
| No start or end of range specified | validation | error | range, validation, http-header |
| Proxying is disallowed for | exception | warning | proxy, no-proxy, environment, configuration |
| A ":" is not allowed in login (RFC 7617#section-2) | exception | error | authentication, basic-auth, validation, rfc-7617 |
| body and text are not allowed together | exception | error | aiohttp, web-response, constructor, validation, body |
| Transfer-Encoding can't be present with Content-Length | exception | error | http, parser, security, smuggling, header, validation |
| Unsupported version | http | error | websocket, handshake, protocol-version, rfc6455 |
| Multipart field missing name. | validation | error | multipart, form-data, validation, upload |
| only one of data or body should be specified | exception | error | aiohttp, web-response, json-response, orjson, validation |
| Invalid challenge response | http | error | websocket, handshake, security, rfc6455 |
| Invalid HTTP header | exception | error | http, parser, header, request, validation |
| Timeout context manager should be used inside a task | exception | error | timeout, asyncio, task, event-loop, runtime-error |
| Invalid response status | http | error | websocket, handshake, network |
| bad content disposition parameter | exception | error | content-disposition, validation, header, rfc-2183 |
| Cannot call write() after write_eof() | exception | error | aiohttp, web-response, streaming, eof, lifecycle |
| HTTP redirects need a location to redirect to. | validation | error | redirect, validation, http-exception |
| start cannot be after end | validation | error | range, validation, http-header, fileresponse |
| filename must be an instance of str. Got | exception | error | form-data, type-error, multipart, validation |
| bad content for quoted-string | exception | error | content-disposition, encoding, validation, ascii, rfc-5322 |
| Site is not registered in runner | exception | error | aiohttp, web-runner, site, lifecycle, cleanup |
| only one of data, text, or body should be specified | exception | error | aiohttp, web-response, json-response, validation |
| Cannot call write() before prepare() | exception | error | aiohttp, web-response, streaming, lifecycle, prepare |
| boundary should contain ASCII only chars | validation | error | multipart, boundary, ascii, validation, writer |
| Cannot follow redirect with a consumed request body. Use… | exception | error | redirect, request-body, streaming |
| A ":" is not allowed in username (RFC 1945#section-11.1) | validation | error | authentication, digest-auth, validation, rfc |
| data and json parameters can not be used at the same time | validation | error | http-request, request-body, validation |
| No .netrc file found | exception | warning | proxy, netrc, authentication, configuration, environment |
| Could not find starting boundary | exception | error | multipart, boundary, framing, stream-integrity, empty-body |
| Invalid boundary , expected | exception | error | multipart, boundary, framing, stream-integrity |
| data cannot be decoded with | exception | error | multipart, form-data, charset, encoding, unicode |
| Cannot create payload from %r | exception | error | multipart, payload, writer, typeerror, serialization, lookuperror |
| Unable to read body part as bytes. Use write() to consume. | exception | error | multipart, payload, streaming, typeerror, memory, api-misuse |
| Call runner.setup() before making a site | exception | error | aiohttp, web-runner, lifecycle, site, ordering |
| timeout parameter cannot be of | validation | error | timeout, client-session, type-validation |
| content_type must be an instance of str. Got | exception | error | form-data, type-error, multipart, validation |
| Invalid connection header | http | error | websocket, handshake, headers |
| Session and connector have to use same event loop | exception | error | event-loop, client-session, connector, concurrency |
| Separator should be at least one-byte string | validation | error | streams, validation, parsing |
| You can't enable chunked encoding when a content length is… | exception | error | response, chunked, content-length, transfer-encoding |
| Cannot clone request after reading its content | exception | error | request, clone, body, middleware |
| Too many headers received | http | error | multipart, headers, dos-protection, limits, badhttpmessage |
| boundary missed for Content-Type | validation | error | multipart, content-type, boundary, validation, rfc-2046 |
| Site is already registered in runner | exception | error | aiohttp, web-runner, site, registration, lifecycle |
| Session is closed | exception | error | lifecycle, client-session, resource-management |
| None is not allowed as login value | validation | error | authentication, digest-auth, validation, configuration |
| Unable to decode. | exception | error | multipart, payload, streaming, typeerror, api-misuse |
| No entry for found in the `.netrc` file. | exception | warning | proxy, netrc, authentication, configuration |
| You can't set content length when chunked encoding is enable | exception | error | response, content-length, chunked, transfer-encoding |
| Invalid upgrade header | http | error | websocket, handshake, headers |
| None is not allowed as password value | validation | error | authentication, digest-auth, validation, configuration |
| unknown content encoding | exception | error | multipart, content-encoding, compression, decoding |