Occasionally users of our web application encounter the following error message:
Request Entity Too Large
The requested resource
/ourapp/ourlocation/
does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.
We checked our logs, but we were unable to find any entries that seem to correlate with the error above. After doing a little research, I believe that the issue is that some aspect of the request is too large for certain proxy servers and the proxy is returning the 413 error to the user's web browser. (This is just a guess, though.)
Do you have any ideas for figuring out what is causing this error? So far, I have used the Charles Web Debugging Proxy and LiveHTTPHeaders to try and observe how many bytes each request to a given page is using.
Here are a few other questions that might aid in my troubleshooting.
If it is a proxy server returning the error, then I would expect there to be another response header that has the proxy's name in there somewhere. Maybe an "X-Via" or "Server" header?
To your questions... 1 & 3 are up to the proxy server. 2: I would imagine every byte in the request would count towards the limit.
To test this, I would create a console app that would keeping sending larger & larger "GET" requests until it recieved a 413 back. Then you could get one of these users to run it and see if it is reproducible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With