-
OS:
Code to reproduce: import asyncio
from aiohttp import ClientSession
async def main():
proxy = ""
session = ClientSession(proxy=proxy)
async with session.get(
"https://api.ipify.org/",
) as response:
ip = await response.text()
print("Closing session...")
await session.close()
print("Done")
return ip
asyncio.run(main(), debug=True) I use proxies, without them the script work, but with proxies I can get response too and print ip |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed: #11273 (comment) |
Beta Was this translation helpful? Give feedback.
Fixed: #11273 (comment)