Answer the question
In order to leave comments, you need to log in
When connecting proxy aiohttp, an error occurs, how to solve?
When proxy http is connected, such an error falls, without a proxy everything goes fine, the working proxy checked through reqeusts. How can you fix it?
async with aiohttp.ClientSession() as session:
async with session.get('https://site.com',
proxy='http://log:[email protected]:port') as resp:
print(resp.status)
print(await resp.text())
File "C:\ProgramData\Anaconda3\lib\site-packages\aiohttp\connector.py", line 1093, in _create_proxy_connection
transport, proto = await self._wrap_create_connection(
File "C:\ProgramData\Anaconda3\lib\site-packages \aiohttp\connector.py", line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host yandex.ru:443 ssl:default [Invalid parameter]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question