Unexpected LocalProtocolError
when making POST request
#3529
Unanswered
basic-bgnr
asked this question in
General
Replies: 1 comment
-
Please try to provide more context so we can help you, such as the traceback, reproducible code, dependencies, and so on. |
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
-
Problem statement
I am using
httpx (build : 0.28.1) (Edit: HTTP/2, AsyncClient)
to make sync GET/POST request to an internal API server. This works fine for single request as it should; but when I try to make several (10+ requests), I getLocalProtocolError
which is peculiar.Edit: Added Traceback
Seems like the server is returning with HTTP/2 GOAWAY frame; found a open issue on
h2
: python-hyper/h2#1181existing issue with
httpx
: #2112Current Workaround:
I catch the exception and make the request again without any changes to the original request (i.e without changing
content-length
or any other headers), the request completes successfully. Its just the matter of handling exception but I shouldn't be getting anyLocalProtocolError
Beta Was this translation helpful? Give feedback.
All reactions