BadHttpRequestException: Reading the request body timed out due to data arriving too slowly
I am seeing a few of these exceptions on my API I deployed to a VPS:
I could just shrug it off as the user on the other end of the request having a poor internet connection, but it happened three times last night to two different people, so I’d at least like to briefly investigate - does anyone have any ideas what debugging steps I could take? There isn't anything from around this time period in the reverse proxy logs
3 Replies
in appsettings.json, add this;
then check "Request body" in the logs.
you might re-produce the error locally, post to URL with limit-rate 1K(or w/e)
I can probably reproduce it by throttling my connection but what I’d like to know is whether I can rule out my infrastructure as the cause
I guess there’s always going to be people with poor connections using my thing so it’s probably unavoidable in the long term
yea obv, but raising datarate limit won't hurt(at least test it for a while)