Open wm1995 opened 10 months ago
I wonder if there isn't an aiohttp timeout that's being reached. You mentioned earlier that the data transfer didn't start for 9 seconds. That seems like a long time.
There are lots of timeouts in https://docs.aiohttp.org/en/stable/client_reference.html.
This is following on from stan-dev/pystan#396, which ultimately seems to root from an httpstan issue. I'm working on an MWE, but the case I've identified so far seems to happen with a very large dataset. I used curl to interact with httpstan, to isolate whether it was a Pystan or httpstan error.
In the case I've identified, I'm able to compile and sample a large model, which appears to complete successfully according to the operation endpoint. However, when I do the final GET request to retrieve the model results, httpstan sends a header for the response, but then closes the connection without sending any data. There's no visible error on the console running httpstan (which I started using
python -m httpstan
), but the curl request fails:and packet sniffing suggests that httpstan is closing the connection:
Packet 36 has [FIN, ACK] set.
The corresponding TCP stream is