SHARE
TWEET

Untitled

a guest Aug 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ➜  backend git:(develop) ✗ node app.js  
  2. App is listening on port 5000
  3. GET / 404 3.005 ms - 139
  4. OPTIONS /api/workTime 200 1.922 ms - 2
  5. START
  6. WORKTIME
  7. KONIEC
  8. Error [ValidationError]: WorkTime validation failed: project: Path `project` is required.
  9.     at ValidationError.inspect (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/error/validation.js:59:24)
  10.     at formatValue (internal/util/inspect.js:550:31)
  11.     at inspect (internal/util/inspect.js:221:10)
  12.     at formatWithOptions (internal/util/inspect.js:1651:40)
  13.     at Object.Console.<computed> (internal/console/constructor.js:272:10)
  14.     at Object.log (internal/console/constructor.js:282:61)
  15.     at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/Controller.js:84:19
  16.     at processTicksAndRejections (internal/process/task_queues.js:85:5) {
  17.   errors: {
  18.     project: MongooseError [ValidatorError]: Path `project` is required.
  19.         at new ValidatorError (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/error/validator.js:29:11)
  20.         at validate (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1034:13)
  21.         at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1088:11
  22.         at Array.forEach (<anonymous>)
  23.         at SchemaString.SchemaType.doValidate (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1043:14)
  24.         at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/document.js:2159:9
  25.         at processTicksAndRejections (internal/process/task_queues.js:75:11) {
  26.       message: 'Path `project` is required.',
  27.       name: 'ValidatorError',
  28.       properties: [Object],
  29.       kind: 'required',
  30.       path: 'project',
  31.       value: '',
  32.       reason: undefined,
  33.       [Symbol(mongoose:validatorError)]: true
  34.     }
  35.   },
  36.   _message: 'WorkTime validation failed',
  37.   name: 'ValidationError'
  38. }
  39. aaaaa
  40. POST /api/workTime 500 22.202 ms - 387
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top