arb / celebrate

A joi validation middleware for Express.
MIT License
1.33k stars 66 forks source link

request gives gateway timeout incase of validation error on nginx server #166

Closed himanshuchandra closed 4 years ago

himanshuchandra commented 4 years ago

Everything is working perfectly on local environment, but on production server, request gives gateway timeout when request body contains invalid data according to celebrate. Server is using nginx as reverse-proxy. Is there any configuration required for this to work? @arb

arb commented 4 years ago

Are you using the default celebrate error handler? If so, you may need to configure nginx to handle 400 status code errors.

arb commented 4 years ago

Closing due to inactivity.