Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (node:21669) UnhandledPromiseRejectionWarning: CastError: Cast to ObjectId failed for value "signup" at path "_id" for model "Miniature"
- at new CastError (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/error/cast.js:27:11)
- at ObjectId.cast (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/schema/objectid.js:158:13)
- at ObjectId.SchemaType._castForQuery (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/schematype.js:1088:15)
- at ObjectId.castForQuery (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/schema/objectid.js:198:15)
- at ObjectId.SchemaType.castForQueryWrapper (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/schematype.js:1045:15)
- at cast (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/cast.js:269:32)
- at model.Query.Query.cast (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/query.js:3302:12)
- at model.Query.Query._castConditions (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/query.js:1292:10)
- at model.Query.Query._findOne (/Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/mongoose/lib/query.js:1504:8)
- at /Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/kareem/index.js:250:8
- at /Users/ga/dev/ga-wdi/projects/project-2/ga-wdi-project-2/node_modules/kareem/index.js:23:7
- at process._tickCallback (internal/process/next_tick.js:150:11)
- (node:21669) 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(). (rejection id: 1)
- (node:21669) [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.
Add Comment
Please, Sign In to add comment