Guest User

Untitled

a guest
Jan 29th, 2018
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. { CastError: Cast to ObjectId failed for value "" at path "_id" for model "allPublisher"
  2. at new CastError (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/error/cast.js:27:11)
  3. at ObjectId.cast (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/schema/objectid.js:158:13)
  4. at ObjectId.SchemaType._castForQuery (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/schematype.js:1088:15)
  5. at ObjectId.castForQuery (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/schema/objectid.js:198:15)
  6. at ObjectId.SchemaType.castForQueryWrapper (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/schematype.js:1045:15)
  7. at cast (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/cast.js:269:32)
  8. at model.Query.Query.cast (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/query.js:3302:12)
  9. at model.Query.Query._castConditions (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/query.js:1292:10)
  10. at model.Query.Query._findOne (/home/mayur/openRtb/dsp/node_modules/mongoose/lib/query.js:1504:8)
  11. at /home/mayur/openRtb/dsp/node_modules/kareem/index.js:250:8
  12. at /home/mayur/openRtb/dsp/node_modules/kareem/index.js:23:7
  13. at _combinedTickCallback (internal/process/next_tick.js:131:7)
  14. at process._tickCallback (internal/process/next_tick.js:180:9)
  15. message: 'Cast to ObjectId failed for value "" at path "_id" for model "allPublisher"',
  16. name: 'CastError',
  17. stringValue: '""',
  18. kind: 'ObjectId',
  19. value: '',
  20. path: '_id',
  21. reason: undefined,
  22. model:
  23. { [Function: model]
  24. hooks: Kareem { _pres: {}, _posts: {} },
  25. base:
  26. Mongoose {
  27. connections: [Array],
  28. models: [Object],
  29. modelSchemas: [Object],
  30. options: [Object],
  31. plugins: [Array] },
  32. modelName: 'allPublisher',
  33. model: [Function: model],
  34. db:
  35. NativeConnection {
  36. base: [Object],
  37. collections: [Object],
  38. models: [Object],
  39. config: [Object],
  40. replica: false,
  41. hosts: null,
  42. host: 'localhost',
  43. port: 27017,
  44. user: undefined,
  45. pass: undefined,
  46. name: 'dsp_ux_local',
  47. options: [Object],
  48. otherDbs: [],
  49. states: [Object],
  50. _readyState: 1,
  51. _closeCalled: false,
  52. _hasOpened: true,
  53. _listening: false,
  54. db: [Object] },
  55. discriminators: undefined,
  56. '$appliedMethods': true,
  57. '$appliedHooks': true,
  58. _events: { init: [Function], save: [Function] },
  59. _eventsCount: 2,
  60. schema:
  61. Schema {
  62. obj: {},
  63. paths: [Object],
  64. aliases: {},
  65. subpaths: {},
  66. virtuals: [Object],
  67. singleNestedPaths: {},
  68. nested: {},
  69. inherits: {},
  70. callQueue: [Array],
  71. _indexes: [],
  72. methods: {},
  73. statics: {},
  74. tree: [Object],
  75. query: {},
  76. childSchemas: [],
  77. plugins: [Array],
  78. s: [Object],
  79. _userProvidedOptions: [Object],
  80. options: [Object],
  81. '$globalPluginsApplied': true,
  82. _requiredpaths: [] },
  83. collection:
  84. NativeCollection {
  85. collection: [Object],
  86. opts: [Object],
  87. name: 'publisher_inventory',
  88. collectionName: 'publisher_inventory',
  89. conn: [Object],
  90. queue: [],
  91. buffer: false,
  92. emitter: [Object] },
  93. Query: { [Function] base: [Object] },
  94. '$__insertMany': [Function],
  95. insertMany: [Function],
  96. '$init': Promise { [Circular] } } }
Add Comment
Please, Sign In to add comment