-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using httpx with httpcore newer than 0.14.5 results in The connection pool was closed while XXX HTTP requests/responses were still in-flight.
. Need help figuring it out.
#624
Comments
+1 I'm using a similar code to @teodoryantcheff: 1 async client across different tasks used with The error I'm getting:
|
Closed by #627 and released as 0.16.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using httpx with httpcore newer than 0.14.5 results in
RuntimeError: The connection pool was closed while XXX HTTP requests/responses were still in-flight.
Anything newer and it breaks, but I need help figuring out why.So, I have this code:
and this combination of
httpcore
andhttpx
:on
results in smooth sailing -- It all works as expected and life is good and all that.
While using
Suffers a horrible death with:
And this happens always near the end of the request pile. Tested with splitting
tasks
in chunks of various sizes but it always dies at the last chunk.Same behavior using any version of
httpcore
newer thanhttpcore==0.14.5
.I read @tomchristie 's post hinting at "oddly structured" code, but I honestly cannot see anything wrong with it.
I have looked at:
And still have no idea what (if anything) I'm doing wrong.
Please advice on what I'm doing wrong.
Many thanks in advance!
The text was updated successfully, but these errors were encountered: