client_exceptions

HTTP related errors.

Module Contents

Classes

ClientError() Base class for client connection errors.
ClientResponseError(self,request_info,history) Connection error during reading response.
ContentTypeError() ContentType found is not valid.
WSServerHandshakeError() websocket server handshake error.
ClientHttpProxyError() HTTP proxy error.
TooManyRedirects() Client was redirected too many times.
ClientConnectionError() Base class for client socket errors.
ClientOSError() OSError error.
ClientConnectorError(self,connection_key,os_error) Client connector error.
ClientProxyConnectionError() Proxy connection error.
ServerConnectionError() Server connection errors.
ServerDisconnectedError(self,message=None) Server disconnected.
ServerTimeoutError() Server timeout error.
ServerFingerprintMismatch(self,expected,got,host,port) SSL certificate does not match expected fingerprint.
ClientPayloadError() Response payload error.
InvalidURL(self,url) Invalid URL.
ClientSSLError() Base error for ssl.*Errors.
ClientConnectorSSLError() Response ssl error.
ClientConnectorCertificateError(self,connection_key,certificate_error) Response certificate error.
class ClientError

Base class for client connection errors.

class ClientResponseError(request_info, history)

Connection error during reading response.

request_info: instance of RequestInfo

__init__(request_info, history)
code()
code(value)
class ContentTypeError

ContentType found is not valid.

class WSServerHandshakeError

websocket server handshake error.

class ClientHttpProxyError

HTTP proxy error.

Raised in aiohttp.connector.TCPConnector if proxy responds with status other than 200 OK on CONNECT request.

class TooManyRedirects

Client was redirected too many times.

class ClientConnectionError

Base class for client socket errors.

class ClientOSError

OSError error.

class ClientConnectorError(connection_key, os_error)

Client connector error.

Raised in aiohttp.connector.TCPConnector if
connection to proxy can not be established.
__init__(connection_key, os_error)
os_error()
host()
port()
ssl()
__str__()
class ClientProxyConnectionError

Proxy connection error.

Raised in aiohttp.connector.TCPConnector if
connection to proxy can not be established.
class ServerConnectionError

Server connection errors.

class ServerDisconnectedError(message=None)

Server disconnected.

__init__(message=None)
class ServerTimeoutError

Server timeout error.

class ServerFingerprintMismatch(expected, got, host, port)

SSL certificate does not match expected fingerprint.

__init__(expected, got, host, port)
__repr__()
class ClientPayloadError

Response payload error.

class InvalidURL(url)

Invalid URL.

URL used for fetching is malformed, e.g. it doesn’t contains host part.

__init__(url)
url()
__repr__()
class ClientSSLError

Base error for ssl.*Errors.

class ClientConnectorSSLError

Response ssl error.

class ClientConnectorCertificateError(connection_key, certificate_error)

Response certificate error.

__init__(connection_key, certificate_error)
certificate_error()
host()
port()
ssl()
__str__()