-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
ClientPayloadError: Response payload is not completed #396
Comments
I've had this same issue on an M1 Mac - I've been validating my inference using simulation-based calibration, and if I simulate a dataset of 100 samples and use a model with ~400 params, about 75% of my runs fail with this error. OS: Sonoma 14.0 The full output and error traceback is:
|
This isn't an error I've seen before. Sounds like some kind of memory or buffer size limit might be being exceeded. |
I'm wondering if this is linked to aio-libs/aiohttp#4581, and it occurs for large requests that don't get a response in time? Not sure though |
I used a packet sniffer to inspect the traffic going back and forth between Pystan and httpstan; I also had a go at using pdb to try to catch the error as it happened, but the httpstan server had been torn down at that point. For my example, the fit works for 6000 samples, but fails for 48000 samples.
There's a 0.7 second delay between when the GET request for the results is issued and when the data begins to be streamed. The response header (in packet 76880) from httpstan is
and indicates that ~300MB of data is being streamed (though the packet sniffer seemingly only picks up ~150MB of that). The data streaming begins in 76881 and is complete in 0.3 seconds. I can't see any sort of TCP teardown, but that could well be because the sniffer missed the packets. For the 48000 sample run (where the
There's 9 seconds before the server responds, but the connection is torn down by
indicating that ~3GB of data would be streamed. |
It looks like this is fundamentally a httpstan issue (as I have the same issue when using curl to interact with httpstan directly), so I've opened stan-dev/httpstan#652 to summarise what I've found. |
Closing this in favor of stan-dev/httpstan#652. As @wm1995 says, this is an httpstan issue. |
Describe the bug
When running models with larger data on an Intel-based Mac, the following errors occurs:
ClientPayloadError: Response payload is not completed
Describe your system
OS: macOS 10.15.7 (19H2026)
CPU: 2.4 GHz 8-Core Intel Core i9
C++: clang++ Apple clang version 11.0.0 (clang-1100.0.33.16)
Python: Anaconda conda 4.14.0
Steps/Code to Reproduce
Code Sample, a copy-pastable example
The text was updated successfully, but these errors were encountered: