You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It relies on a module, elasticsearch-exceptions, that is 3 years old and reportedly only supports Elasticsearch 1.4
In the case of errors, it sets the default error code to 400. This means that a lot of errors such as failures to connect to other services are reported as 400 instead of 500 errors. 400 errors should be reserved for cases where the user's input, such as query params, are incorrect.
The text was updated successfully, but these errors were encountered:
orangejulius
changed the title
Rewrite/fix error handling code in middleware/sendJSON
Fix error handling code in middleware/sendJSONMar 24, 2018
The error handling code in middleware/sendJSON.js has some potential problems:
The text was updated successfully, but these errors were encountered: