-
-
Save gishmel/0ea2a8270c3342d87a72 to your computer and use it in GitHub Desktop.
Mongoose Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"stack": "Error\n at MongooseError.ValidationError (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/error/validation.js:22:16)\n at model.Document.invalidate (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/document.js:1162:32)\n at /home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/document.js:1037:16\n at validate (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:651:7)\n at /home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:679:9\n at Array.forEach (native)\n at SchemaString.SchemaType.doValidate (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:656:19)\n at /home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/document.js:1035:9\n at process._tickCallback (node.js:355:11)", | |
"message": "User validation failed", | |
"name": "ValidationError", | |
"errors": { | |
"name": { | |
"properties": { | |
"type": "required", | |
"message": "Path `{PATH}` is required.", | |
"path": "name" | |
}, | |
"stack": "Error\n at MongooseError.ValidatorError (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/error/validator.js:25:16)\n at validate (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:650:13)\n at /home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:679:9\n at Array.forEach (native)\n at SchemaString.SchemaType.doValidate (/home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/schematype.js:656:19)\n at /home/gishmel/Documents/kingsCourt/server/node_modules/mongoose/lib/document.js:1035:9\n at process._tickCallback (node.js:355:11)", | |
"message": "Path `name` is required.", | |
"name": "ValidatorError", | |
"kind": "required", | |
"path": "name" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment