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
Using a proxy like this in aiohttp 3.9.5 would result in a timeout when connecting.
proxy='socks5://user:pass@127.0.0.1:1' # Example proxy value that would previously timeout connecting
connector = aiohttp_socks.ProxyConnector.from_url(proxy)
async with aiohttp.ClientSession(connector=connector) as sess:
async with sess.request('GET', url) as resp:
# do stuff with response
In aiohttp 3.10.0 this now raises a TypeError:
Traceback (most recent call last):
File "/some/path/file.py", line 1729, in foo
async with sess.request('GET', url) as resp:
File "/some/venv/lib/python3.11/site-packages/aiohttp/client.py", line 1344, in __aenter__
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/some/venv/lib/python3.11/site-packages/aiohttp/client.py", line 648, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/some/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 546, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/some/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 954, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/some/venv/lib/python3.11/site-packages/aiohttp/connector.py", line 1282, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ProxyConnector._wrap_create_connection() missing 2 required positional arguments: 'host' and 'port'
The text was updated successfully, but these errors were encountered:
vEpiphyte
added a commit
to vertexproject/synapse
that referenced
this issue
Jul 31, 2024
The happyeyeballs support ( added here aio-libs/aiohttp@1700e9d aio-libs/aiohttp#7954 aio-libs/aiohttp#8005 ) changed the call signature of the
TCPConnector._wrap_create_connection
function.Using a proxy like this in aiohttp 3.9.5 would result in a timeout when connecting.
In aiohttp 3.10.0 this now raises a TypeError:
The text was updated successfully, but these errors were encountered: