ConnectionTerminated error_code:0 not gracefully retried
#3549
Unanswered
injust
asked this question in
Potential Issue
Replies: 1 comment
-
|
We are running into the same thing! We made a reproducable test for you easy enough. https://github.com/dClimate/py-hamt/tree/example-connection-error should be able to just do
then run this
And you will get this error This is because on our server we have it rejecting requests after 1000. My understanding is that it should handle it more gracefully and restart a new connection when the server says it will cut you off. Important code is in store_httpx.py with where we enable http2=True |
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


Uh oh!
There was an error while loading. Please reload this page.
-
#2112 (reply in thread):
Based on the above, I saw that encode/httpcore#683 was superseded by encode/httpcore#733, so I expected this error to be gracefully retried by httpx. However, I've been running into this error ~daily, and have worked around it by retrying the httpx request with tenacity.
Unfortunately, I have no information about the server and I am unable to share the code for the client in its entirety. Please let me know what information I can provide that might be helpful, e.g. debug logging.
I am making a POST request to the same URL every ~10 seconds, until it inevitably fails. This is approximately how I am calling httpx:
Traceback
Originally posted by @injust in #2112 (reply in thread)
Beta Was this translation helpful? Give feedback.
All reactions