HTTP Patch raising BrokenPipeError when 100 Continue present? #2503
-
Hey, I am trying to properly handle 413 return code, but seems like httpx doesn't like it. The response request:
When making this request via httpx self._http = httpx.AsyncClient(
auth=(_config.hub_access_key_id, _config.hub_access_key_secret),
verify=False,
)
# ...
res = await self._http.patch(url, content=patch) I get
Interesting thing though is that when using native res = requests.patch(url, data=patch, auth=(_config.hub_access_key_id, _config.hub_access_key_secret)) Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
tomchristie
Dec 13, 2022
Replies: 1 comment 9 replies
-
The traceback shows the server closing the connection before the request body has been fully sent. Which is reasonable behaviour, but curious that you're not seeing the same behaviour with
|
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
mturoci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The traceback shows the server closing the connection before the request body has been fully sent. Which is reasonable behaviour, but curious that you're not seeing the same behaviour with
requests
.httpx
request with a syncrequests
request is a better starting point.