httpx.ReadError for async POST request with content of 256 kB or higher #3717
Unanswered
asmaier
asked this question in
Potential Issue
Replies: 0 comments
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.
-
Current Behavior:
For POST content above a certain size (256kB in my example) the async client raises an httpx.ReadError.
The sync POST request works as expected and doesn't raise an exception.
Expected Behavior:
I expect the async client to behave the same as the sync client. It should not raise an exception.
Steps To Reproduce:
Consider the following example code
When this code is executed it will output
When we activate the line
content = os.urandom(1024*128)the output of the program isVersions
httpx: 0.28.1
OS Version: ARM Mac OS 26.1
Python version: Python 3.13.5
uv version: uv 0.9.13 (Homebrew 2025-11-26)
Beta Was this translation helpful? Give feedback.
All reactions