Hello!
On Tue, May 20, 2014 at 11:45 PM, Lord Nynex wrote:
> I've been troubleshooting a similar issue for failed requests on
> 'multipart/form-data' PUT's to an upstream back end.
I suggest you use tools like nc, tcpdump, and wireshark to debug
backend issues on the TCP level. The nginx debugging logs can be
helpful as well.
> I haven't figured out
> if the problem is with nginx or my backend. Your response below makes me
> wonder what constitutes a sub-request?
Your example uses echo_exec which initiates an internal redirect
rather than a subrequest.
> Will this not work because the named
> location is considered a sub request?
You cannot initiate a subrequest to a named location, not to mention
you're not using subrequests at all.
Please read my nginx tutorials for some nginx basics:
http://openresty.org/download/agentzh-nginx-tutorials-en.html
> In my most recent round of testing my
> error logs show nothing, and the access log indicates the response status
> sent to the client was a 500 error.
Everytime you see a 500 error, you should check out your nginx
error.log file (and ensure you're not using an "error_log" filtering
level that is too high).
> The upstream error logs indicate the
> correct content length but is not able to read any data from the request
> body.
>
The original error message should be much more helpful than your
(vague) English description.
Best regards,
-agentzh