Hello!
On Sat, Oct 19, 2013 at 10:03 AM, <
david.ri...@enquora.com> wrote:
>
> Accessing any protected uri returns a 500 server error, but nothing in the
> nginx logs.
> Commenting out code lines indicates the problem occurs at the for _ pairs
> line that counts the table rows in the decoded json response.
Are you sure there are no error logs in nginx's error.log file?
Because some people have troubles in reading nginx error logs, here
are some suggestions:
1. ensure that you're looking at nginx's error.log file, not access.log file.
2. ensure that you don't use a high log level like "crit" or "alert"
in your error_log directive in nginx.conf. See also
http://nginx.org/en/docs/ngx_core_module.html#error_log
Your problem looks like a Lua exception, so you SHOULD get detailed
error messages (at the [error] level) in your nginx's error.log file.
Regards,
-agentzh