Cancelling asyncio.as_completed causes uncatchable error with AsyncClient #2736
Unanswered
UpstreamData
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to get results from an AsyncClient in the order they complete, while also allowing a timeout at the top level without passing all the way down, but for some reason when the tasks are cancelled, they raise a long traceback that cannot be handled (including by wrapping the entire file in a
try: except:block), and shows no references to the file being run.Python version is 3.10, httpx version 0.24.1.
Here's a runnable example, uses a device that doesn't exist locally at
192.168.1.15:Beta Was this translation helpful? Give feedback.
All reactions