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 "/Users/xx/projects/pytool/beian/test.py", line 38, in <module>
asyncio.run(main())
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/asyncio/runners.py", line 44, in runreturn loop.run_until_complete(main)
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/asyncio/base_events.py", line 649, in run_until_completereturn future.result()
File "/Users/xx/projects/pytool/beian/test.py", line 34, in mainasyncwith session.get(url,proxy=_proxy['http'],ssl=False) as resp:
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/client.py", line 1194, in __aenter__self._resp =awaitself._coro
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/client.py", line 578, in _request
conn =awaitself._connector.connect(
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/connector.py", line 544, in connect
proto =awaitself._create_connection(req, traces, timeout)
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/connector.py", line 909, in _create_connection
_, proto =awaitself._create_proxy_connection(req, traces, timeout)
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/connector.py", line 1357, in _create_proxy_connectionreturnawaitself._start_tls_connection(
File "/Users/xx/.pyenv/versions/3.10.13/lib/python3.10/site-packages/aiohttp/connector.py", line 1139, in _start_tls_connectionraise client_error(req.connection_key, OSError(msg))
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host ifconfig.me:443 ssl:False [None]
Using the same URLs and proxies, it works fine when requesting with the requests library
Describe the bug
Error when requesting https site through proxy using ClientSession.get()
To Reproduce
run this demo:
Expected behavior
The normal return when requesting
https://ifconfig.me/all
is as follows:Logs/tracebacks
Using the same URLs and proxies, it works fine when requesting with the requests library
aiohttp Version
multidict Version
yarl Version
OS
macOS and Debian
Related component
Server, Client
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: