Gaierror Errno -3 Temporary Failure In Name Resolution

The following exceptions are defined by the socket module.

error

This exception is raised for socket- or address-related errors. It returns a pair (errno, mesg) with the error returned by the underlying system call. Inherits from IOError.

herror

Error raised for address-related errors. Returns a tuple (herrno, hmesg) containing an error number and error message. Inherits from error.

gaierror

Error raised for address-related errors in the getaddrinfo() and getnameinfo() func-tions.The error value is a tuple (errno, mesg), where errno is an error number and mesg is a string containing a message. errno is set to one of the following constants defined in the socket module:

Constant

Description

EAI_

_ADDRFAMILY

Address family not supported.

EAI_

_AGAIN

Temporary failure in name resolution.

EAI_

_BADFLAGS

Invalid flags.

EAI_

_BADHINTS

Bad hints.

EAI_

_FAIL

Nonrecoverable failure in name resolution.

EAI

_FAMILY

Address family not supported by host.

EAI

_MEMORY

Memory allocation failure.

EAI

_NODATA

No address associated with node name.

EAI

_NONAME

No node name or service name provided.

EAI

_PROTOCOL

Protocol not supported.

EAI

_SERVICE

Service name not supported for socket type.

EAI

_SOCKTYPE

Socket type not supported.

EAI

_SYSTEM

Exception raised when a socket operation times out. This only occurs if a timeout has been set using the setdefaulttimeout() function or settimeout() method of a socket object. Exception value is a string, 'timeout'. Inherits from error.

Was this article helpful?

0 -1

Post a comment