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
I've discovered an interesting behaviour recently.
The matter is that the code below starts getting stuck at awaiting the request since the bump of request-async to 0.5.0 (0.4.1 works well), but the only meaningful change in encode/requests-async#48 is bumping of httpcore/http3 to 0.3.0 (if I'm not mistaken). That's why I decided to open an issue here.
I'm wondering if it could be possible to clarify if I'm missing something.
Happy to provide any assistance with investigation/debugging/fixing.
The code example:
import asyncio
import uvloop
import requests_async
myurls = [
"https://google.com",
"https://google.com",
]
async def async_get(url):
resp = await requests_async.get(url)
return resp.status_code
async def gather_run():
tasks = [async_get(x) for x in myurls]
# Await a coroutine
result_1 = await tasks[0]
# Or gather them all
results = await asyncio.gather(*tasks, return_exceptions=True)
print(f'Results: {results}')
return results
uvloop.install()
asyncio.run(gather_run())
Note: it behaves same without uvloop.
The text was updated successfully, but these errors were encountered:
I've discovered an interesting behaviour recently.
The matter is that the code below starts getting stuck at awaiting the request since the bump of
request-async
to0.5.0
(0.4.1
works well), but the only meaningful change in encode/requests-async#48 is bumping ofhttpcore
/http3
to0.3.0
(if I'm not mistaken). That's why I decided to open an issue here.I'm wondering if it could be possible to clarify if I'm missing something.
Happy to provide any assistance with investigation/debugging/fixing.
The code example:
Note: it behaves same without
uvloop
.The text was updated successfully, but these errors were encountered: