Closed metemaddar closed 1 year ago
It seems the only package which needs httpx as dependency is cryptography which specified needs at least version 0.21 of httpx. However the httpx is set to install 0.17.1. Maybe we need to rebuild the poetry.loc. We also use httpx inside the codes, But I think we have no conflict withe the version.
Also we have a line that specified to test httpx version should be less than 0.19.0. I don't know what it is used for.
Yes, version 0.17.1 is the maximum because there is a dependency that we haven't upgraded to the latest version (uvicorn) which relies on some other packages that don't work with greater versions of httpx. So it will throw an error if you try to install it. However, I just tried to upgrade the uvicorn package to the latest version and it worked. I managed to install the latest version of httpx after and the error is gone.
So basically these two commands should fix it:
poetry add uvicorn@latest
poetry add httpx@latest
Thank you @majkshkurti for the commands. How beautiful the poetry is.
So we can close this issue right?
@majkshkurti Before closing would you mind commit and let me merge in order to sync branches.
@metemaddar Yes, I will push this today.
I got the same error and I installed uvicorn==0.20.0 and httpx==0.23.3
Will the error comes in these versions
I got the same error and I installed uvicorn==0.20.0 and httpx==0.23.3
Will the error comes in these versions
I don't think so. The problem should get fixed at httpx 0.23.3. I didn't have any problem with that.
I got the same error and I installed uvicorn==0.20.0 and httpx==0.23.3 Will the error comes in these versions
I don't think so. The problem should get fixed at httpx 0.23.3. I didn't have any problem with that.
I got it when I am using python 3.9.15, but after upgrading to 3.9.16 it is resolved. I will check if the error is still coming. Thank you for your quick reply on this.
I got it when I am using python 3.9.15, but after upgrading to 3.9.16 it is resolved. I will check if the error is still coming. Thank you for your quick reply on this.
Thank you very much for the information.
Whenever the debugging for fastAPI starts we get the following error:
This error seems to slow down the start/restart debugging API. As the error says I think some code is passing a Client parameter to the httpx and https tries to call ._transport.close() but the client doesn't have the _transport attribute. I think maybe it caused by other package updates.
I think maybe we can have this error fixed by updating the httpx package.