I've faced with the next issue and need some help.
When I send a large request with json content (the request size is above
10kB), Nginx returns "500 Internal Server Error".
But, when I send the same request with less size, it works fine.
1. I enabled "debug" logging for error.log, but I don't see any errors.
2. Also, I added '$upstream_response_length $upstream_response_time
parameters for logging for access.log.
Once "500 Internal Server Error" error happens, I can see these parameters
This is an example of my log in access.log:
"POST /report/exportreport HTTP/1.1" 500 186 9216 "-" - - - -
But I can see these parameters for other successful requests.
3. Also, I tried to use 'client_max_body_size' parameters in config file,
but it doesn't work for me.
It seems that Nginx trims large request.
Please, could any help me?
Thank you in advance.
Version of Nginx: 1.14.1
error_log /var/log/nginx/error.log debug;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.