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
The current error handler re-throws the new error which will simply crash and exit the server. Can be reproduced by POSTing something that doesn't match the schema to /users in an app like this:
// Make Mongoose use the ES6 promisemongoose.Promise=global.Promise;
Although it is documented, since it is an easy to make and hard to debug mistake I will create a PR with the suggested fix and also highlight using the global.Promise in the documentation.
The current error handler re-throws the new error which will simply crash and exit the server. Can be reproduced by POSTing something that doesn't match the schema to
/users
in an app like this:The fix is in https://github.com/feathersjs/feathers-mongoose/blob/master/src/error-handler.js#L24 to run
instead of throwing it.
The text was updated successfully, but these errors were encountered: