-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
attempting to get a webpage from an ipv6 address doesnt appear to work in aiohttp 0.17.4
when i run the ipv6 address through curl it works.
i also tried the ipv4 address through the aiohttp client and that worked as well.
http://[::1]:9001/foo fails with the following exception
**
socket.gaierror: [Errno -9] Address family for hostname not supported
**
Cannot connect to host ::1:9001 ssl:False http://[::1]:9001/foo
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 571, in _create_connection
server_hostname=hinfo['hostname'] if sslcontext else None)
File "/usr/lib/python3.4/asyncio/base_events.py", line 581, in create_connection
infos = f1.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.4/socket.py", line 533, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -9] **Address family for hostname not supported**
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 292, in connect
transport, proto = yield from self._create_connection(req)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 588, in _create_connection
(req.host, req.port)) from exc
aiohttp.errors.ClientOSError: Can not connect to ::1:9001