anyio update to version 3.7.0 cause http not working #2726
Replies: 8 comments 10 replies
-
If it's stucked, I'm guessing there's no traceback, but could you tell us how we can reproduce the problem, or maybe you can provide some logs so we can understand where the problem is, as well as which anyio and httpx versions aren't working for you, and which anyio version you're using to fix that issue? |
Beta Was this translation helpful? Give feedback.
-
Confirm the issue after anyio 3.7.0 update:
|
Beta Was this translation helpful? Give feedback.
-
I also started getting such For me is with FastAPI, where am using httpx to some external requests. Switched those calls to sync now and they work, will investigate how to get async before we launch.. is just in internal testing now so the damage in terms of scaling due to using sync now is ok for now. Tested a few things with library upgrades etc., but that didn't help, am planning to test with downgrade to Python 3.10 next, that would be ok for us anyway now. UPDATE: i downgraded to python 3.10, and async httpx is again working for me. I guess is due to that change in Python 3.11, like discussed elsewhere, python/cpython@04adf2d |
Beta Was this translation helpful? Give feedback.
-
I also had a big issue on prod with it, using FastAPI also (if relevant). It seems For now I pin anyio version |
Beta Was this translation helpful? Give feedback.
-
Let me provide more details about my environment:
|
Beta Was this translation helpful? Give feedback.
-
Having the same problem here, using I tested it using an interactive session in ipython and it worked correctly! But in my server it always raises error! |
Beta Was this translation helpful? Give feedback.
-
I have the same problem. It cause cancel error when anyio uprade to 3.7.0 |
Beta Was this translation helpful? Give feedback.
-
I have the same problem.
CancelledError request:17074 After downgrade anyio to 3.6.2, there is an error "[Errno -2] Name or service not known" instead of CancelledError, but the request host is working ok. |
Beta Was this translation helpful? Give feedback.
-
We are using docker env for running our service and we notice tha our docker service not working yesterday.
The 'issue" is something like the httpx call stucked
we notice that the anyio upgrade recently and we rollback the anyio to older version fix the issue.
So may be there's a potential issue for the new version of anyio work with httpx.
we tried latest version of httpx which also did not fix the issue.
The issue only occured in our docker env , we use the official python 3.11 alpine env to run our service. In our non docker environment , do not see the issue yet.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions