You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do a HTTP PATCH call which then executes the hook (I use postman for that)
Expected behavior
Feathers returns gracefully (with a validation error message and HTTP 400 Bad Request)
Actual behavior
NodeJs process gets killed:
c:\Development\TheApp\backend\node_modules\mongoose\lib\types\embedded.js:222
throw err;
^
ValidationError: Validation failed: subItems.0.value: Path `value` is required., subItems.0.text: Path `text` is required.
at new ValidationError (c:\Development\TheApp\backend\node_modules\mongoose\lib\error\validation.js:28:11)
at EmbeddedDocument.Document.invalidate (c:\Development\TheApp\backend\node_modules\mongoose\lib\document.js:1658:32)
at EmbeddedDocument.invalidate (c:\Development\TheApp\backend\node_modules\mongoose\lib\types\embedded.js:218:35)
at EmbeddedDocument.invalidate (c:\Development\TheApp\backend\node_modules\mongoose\lib\types\embedded.js:229:19)
at c:\Development\TheApp\backend\node_modules\mongoose\lib\document.js:1530:17
at validate (c:\Development\TheApp\backend\node_modules\mongoose\lib\schematype.js:784:7)
at c:\Development\TheApp\backend\node_modules\mongoose\lib\schematype.js:829:11
at Array.forEach (<anonymous>)
at SchemaNumber.SchemaType.doValidate (c:\Development\TheApp\backend\node_modules\mongoose\lib\schematype.js:789:19)
at c:\Development\TheApp\backend\node_modules\mongoose\lib\document.js:1528:9
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
Waiting for the debugger to disconnect...
ValidationError
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
yes you are right - I also ralized (by now) that it is Mongoose itself that is throwing the exception (and probably on a callback so it bleeds through right to the event loop and kills the process).
Thanks for taking the time - I will just raise the issue on the mongoose project...
Steps to reproduce
Expected behavior
Feathers returns gracefully (with a validation error message and HTTP 400 Bad Request)
Actual behavior
NodeJs process gets killed:
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: v8.9.1
Operating System: Windows 10
The text was updated successfully, but these errors were encountered: