Advertisement
vbert

Bootstrap Validation in node.js + exxpress

Sep 26th, 2021
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. Server uruchomiony na porcie 3000
  2. (node:36827) UnhandledPromiseRejectionWarning: ValidationError: Company validation failed: slug: Pole `slug` jest wymagane, name: Pole `name` jest wymagane
  3.     at model.Document.invalidate (/home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/document.js:2879:32)
  4.     at /home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/document.js:2670:17
  5.     at /home/vbert/Sites/html/node-js/chapter_8/node_modules/mongoose/lib/schematype.js:1267:9
  6.     at processTicksAndRejections (internal/process/task_queues.js:77:11)
  7. (Use `node --trace-warnings ...` to show where the warning was created)
  8. (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)
  9. (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