-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi there!
Unfortunately, running your sample code produces the following error:
File "./proxy_test.py", line 10, in print_ip
async with session.get("https://api.ipify.org?format=json", proxy=proxy) as response:
File "./.venv/lib/python3.10/site-packages/aiohttp/client.py", line 1117, in __aenter__
self._resp = await self._coro
File "./.venv/lib/python3.10/site-packages/aiohttp/client.py", line 492, in _request
req = self._request_class(
File "./.venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 311, in __init__
self.update_proxy(proxy, proxy_auth, proxy_headers)
File "./.venv/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 551, in update_proxy
raise ValueError("Only http proxies are supported")
ValueError: Only http proxies are supported
Installed packages:
aiohttp 3.7.4.post0
aiohttp-socks5 0.0.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels