NGREST_ASSERT_HTTP and nginx

16 views
Skip to first unread message

Frederic Ouellet

unread,
Nov 5, 2018, 9:50:13 AM11/5/18
to ngrest
Hi,

I uses NGREST_ASSERT_HTTP(false, HTTP_STATUS_401_UNAUTHORIZED, "Invalid sessions");

To return the 401 error code when my session cookie is invalid.

This work with the ngrest server.

But I always get 500 internal error when running inside NGINX.

Do you have any idea / tips ?

Thank you.

Frederic Ouellet

unread,
Nov 5, 2018, 12:41:46 PM11/5/18
to ngrest
Finally, I found that ModMessageCallback in ngrest_server.cpp did not handle the HttpException.


Reply all
Reply to author
Forward
0 new messages