anyio broken resource error with asyncio as backend #1802
Unanswered
Kinuseka
asked this question in
Potential Issue
Replies: 1 comment
-
I've had this problem directly with asyncio and httpx before. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Iam not sure if whether this is an anyio or httpx issue, but since this error only occurs during the usage of httpx, then I will place it here.
Though the download is success, but when theres connection error on the way, (which is collected as timeout) the program returns an error but still outputs the correct data anyway.
Here are 2 runnable codes:
Using ASYNCIO:
Using ANYIO(WITH TRIO BACKEND):
Whenever an http error occurs during the async process, the request is given a chance to collect and wait into the except line before eventually retrying the request, the problem with it is that the code spams with a bunch of tracebacks depending how many times http errors has occured
Example:
HOWEVER! using trio as a backend fixes this issue.
Iam posting this here because I know this is not an expected behavior
I am not sure if this issue is from httpx or anyio but the error occured within the httpx code
Beta Was this translation helpful? Give feedback.
All reactions