Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
backend_1 | message: 'Event validation failed',
backend_1 | name: 'ValidationError',
backend_1 | errors:
backend_1 | { nonmemberprice:
backend_1 | { [CastError: Cast to Number failed for value "NaN" at path "nonmemberprice"]
backend_1 | stack: 'Error\n at MongooseError.CastError (/install/node_modules/mongoose/lib/error/cast.js:18:16)\n at model.Document.set (/install/node_modules/mongoose/lib/document.js:622:7)\n at model.Document.set (/install/node_modules/mongoose/lib/document.js:502:18)\n at model.Document (/install/node_modules/mongoose/lib/document.js:62:10)\n at model.Model (/install/node_modules/mongoose/lib/model.js:43:12)\n at new model (/install/node_modules/mongoose/lib/model.js:2808:11)\n at /install/node_modules/mongoose/lib/model.js:1622:10\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:570:21\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:249:17\n at /install/node_modules/mongoose/node_modules/async/lib/async.js:125:13\n at Array.forEach (native)\n at _each (/install/node_modules/mongoose/node_modules/async/lib/async.js:46:24)\n at async.each (/install/node_modules/mongoose/node_modules/async/lib/async.js:124:9)\n at _asyncMap (/install/node_modules/mongoose/node_modules/async/lib/async.js:248:13)\n at Object.map (/install/node_modules/mongoose/node_modules/async/lib/async.js:219:23)\n at _parallel (/install/node_modules/mongoose/node_modules/async/lib/async.js:568:20)\n at Object.async.parallel (/install/node_modules/mongoose/node_modules/async/lib/async.js:598:9)\n at /install/node_modules/mongoose/lib/model.js:1630:11\n at Promise._execute (/install/node_modules/bluebird/js/release/debuggability.js:159:9)\n at Promise._resolveFromExecutor (/install/node_modules/bluebird/js/release/promise.js:460:18)\n at new Promise (/install/node_modules/bluebird/js/release/promise.js:76:14)\n at Function.create (/install/node_modules/mongoose/lib/model.js:1610:17)\n at /install/node_modules/mongoose-find-one-or-create/index.js:17:22\n at /install/node_modules/mongoose/node_modules/kareem/index.js:160:11\n at Query._findOne (/install/node_modules/mongoose/lib/query.js:1140:12)\n at /install/node_modules/mongoose/node_modules/kareem/index.js:156:8\n at /install/node_modules/mongoose/node_modules/kareem/index.js:18:7\n at process._tickCallback (node.js:355:11)\n at Function.Module.runMain (module.js:503:11)\n at startup (node.js:129:16)\n at node.js:814:3\n',
b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.