You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 946, in _wrap_create_connectionreturnawaitself._loop.create_connection(*args, **kwargs) # type:ignore# noqa
File "/usr/lib/python3.8/asyncio/base_events.py", line 1025, in create_connectionraise exceptions[0]
File "/usr/lib/python3.8/asyncio/base_events.py", line 1010, in create_connection
sock =awaitself._connect_sock(
File "/usr/lib/python3.8/asyncio/base_events.py", line 924, in _connect_sockawaitself.sock_connect(sock, address)
File "/usr/lib/python3.8/asyncio/selector_events.py", line 496, in sock_connect returnawait fut
File "/usr/lib/python3.8/asyncio/selector_events.py", line 501, in _sock_connect
sock.connect(address)
OSError: [Errno 101] Network is unreachable
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "t.py", line 12, in <module>
asyncio.run(main())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in runreturn loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_completereturn future.result()
File "t.py", line 8, in main
r =await session.get('https://www.cloudflare.com/cdn-cgi/trace')
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/client.py", line 490, in _request
conn =awaitself._connector.connect(
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 528, in connect
proto =awaitself._create_connection(req, traces, timeout)
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 868, in _create_connection
_, proto =awaitself._create_direct_connection(
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1023, in _create_direct_connectionraise last_exc
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 999, in _create_direct_connection
transp, proto =awaitself._wrap_create_connection(
File "/home/lilydjwg/tmpfs/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 953, in _wrap_create_connectionraise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host www.cloudflare.com:443 ssl:default [Network is unreachable]
📋 Your version of the Python
$ python --versionPython 3.8.6
📋 Your version of the aiohttp/yarl/multidict distributions
🐞 Describe the bug
When requesting HTTPS, IPv6 enabled sites but without local IPv6 route, I get Network is unreachable errors.
💡 To Reproduce
python3 -m venv venv
and. venv/bin/activate
pip install -U aiohttp
💡 Expected behavior
📋 Logs/tracebacks
📋 Your version of the Python
📋 Your version of the aiohttp/yarl/multidict distributions
📋 Additional context
This errors caused my tests to fail on Travis-CI.
There is no issue with HTTP. There is #5110 when IPv6 is accessible.
I switched to www.cloudflare.com because pypi.org reidrects http to https.
The text was updated successfully, but these errors were encountered: