Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Server uruchomiony na porcie 3000
- (node:36827) UnhandledPromiseRejectionWarning: ValidationError: Company validation failed: slug: Pole `slug` jest wymagane, name: Pole `name` jest wymagane
- at model.Document.invalidate (/home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/document.js:2879:32)
- at /home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/document.js:2670:17
- at /home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/schematype.js:1267:9
- at processTicksAndRejections (internal/process/task_queues.js:77:11)
- (Use `node --trace-warnings ...` to show where the warning was created)
- (node:36827) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
- (node:36827) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement