Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ backend git:(develop) ✗ node app.js
- App is listening on port 5000
- GET / 404 3.005 ms - 139
- OPTIONS /api/workTime 200 1.922 ms - 2
- START
- WORKTIME
- KONIEC
- Error [ValidationError]: WorkTime validation failed: project: Path `project` is required.
- at ValidationError.inspect (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/error/validation.js:59:24)
- at formatValue (internal/util/inspect.js:550:31)
- at inspect (internal/util/inspect.js:221:10)
- at formatWithOptions (internal/util/inspect.js:1651:40)
- at Object.Console.<computed> (internal/console/constructor.js:272:10)
- at Object.log (internal/console/constructor.js:282:61)
- at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/Controller.js:84:19
- at processTicksAndRejections (internal/process/task_queues.js:85:5) {
- errors: {
- project: MongooseError [ValidatorError]: Path `project` is required.
- at new ValidatorError (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/error/validator.js:29:11)
- at validate (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1034:13)
- at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1088:11
- at Array.forEach (<anonymous>)
- at SchemaString.SchemaType.doValidate (/Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/schematype.js:1043:14)
- at /Users/arkadiusz.juszczyk/Projects/time-sheet/backend/node_modules/mongoose/lib/document.js:2159:9
- at processTicksAndRejections (internal/process/task_queues.js:75:11) {
- message: 'Path `project` is required.',
- name: 'ValidatorError',
- properties: [Object],
- kind: 'required',
- path: 'project',
- value: '',
- reason: undefined,
- [Symbol(mongoose:validatorError)]: true
- }
- },
- _message: 'WorkTime validation failed',
- name: 'ValidationError'
- }
- aaaaa
- POST /api/workTime 500 22.202 ms - 387
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement