|
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 |
Answered by
Nazar1ky
Jul 10, 2025
Replies: 1 comment
Answer selected by
webknjaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed: #11273 (comment)