Advertisement
Guest User

Untitled

a guest
Aug 21st, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.03 KB | None | 0 0
  1. INFO KURT-B2B: B2B Request: (GET) for /tenants
  2. ERROR KURT-B2B: An error occured. Details: { CastError: Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"
  3. at new CastError (C:\work\sas\kurt-project\node_modules\mongoose\lib\error\cast.js:27:11)
  4. at ObjectId.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:158:13)
  5. at ObjectId.SchemaType._castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1088:15)
  6. at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:198:15)
  7. at C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1015:18
  8. at Array.map (<anonymous>)
  9. at ObjectId.handleArray (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1014:14)
  10. at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:196:20)
  11. at ObjectId.SchemaType.castForQueryWrapper (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1040:17)
  12. at cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\cast.js:250:39)
  13. at model.Query.Query.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:3302:12)
  14. at model.Query.Query._castConditions (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1292:10)
  15. at model.Query.Query._find (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1307:8)
  16. at C:\work\sas\kurt-project\node_modules\kareem\index.js:250:8
  17. at C:\work\sas\kurt-project\node_modules\kareem\index.js:23:7
  18. at _combinedTickCallback (internal/process/next_tick.js:131:7)
  19. at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  20. message: 'Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"',
  21. name: 'CastError',
  22. stringValue: '"5b0e42f80884074730945d68-1529052540305-1.PNG"',
  23. kind: 'ObjectId',
  24. value: '5b0e42f80884074730945d68-1529052540305-1.PNG',
  25. path: '_id',
  26. reason: undefined,
  27. model:
  28. { [Function: model]
  29. hooks: Kareem { _pres: {}, _posts: {} },
  30. base:
  31. Mongoose {
  32. connections: [Array],
  33. models: [Object],
  34. modelSchemas: [Object],
  35. options: [Object],
  36. plugins: [Array] },
  37. modelName: 'medias',
  38. model: [Function: model],
  39. db:
  40. NativeConnection {
  41. base: [Object],
  42. collections: [Object],
  43. models: [Object],
  44. config: [Object],
  45. replica: false,
  46. hosts: null,
  47. host: 'localhost',
  48. port: 27017,
  49. user: null,
  50. pass: null,
  51. name: 'kurt',
  52. options: null,
  53. otherDbs: [],
  54. states: [Object],
  55. _readyState: 1,
  56. _closeCalled: false,
  57. _hasOpened: true,
  58. _listening: false,
  59. _connectionOptions: {},
  60. db: [Object] },
  61. discriminators: undefined,
  62. '$appliedMethods': true,
  63. '$appliedHooks': true,
  64. _events: { init: [Function], save: [Function] },
  65. _eventsCount: 2,
  66. schema:
  67. Schema {
  68. obj: [Object],
  69. paths: [Object],
  70. aliases: {},
  71. subpaths: {},
  72. virtuals: [Object],
  73. singleNestedPaths: [Object],
  74. nested: {},
  75. inherits: {},
  76. callQueue: [Array],
  77. _indexes: [],
  78. methods: {},
  79. statics: {},
  80. tree: [Object],
  81. query: {},
  82. childSchemas: [Array],
  83. plugins: [Array],
  84. s: [Object],
  85. _userProvidedOptions: {},
  86. options: [Object],
  87. '$globalPluginsApplied': true },
  88. collection:
  89. NativeCollection {
  90. collection: [Object],
  91. opts: [Object],
  92. name: 'medias',
  93. collectionName: 'medias',
  94. conn: [Object],
  95. queue: [],
  96. buffer: false,
  97. emitter: [Object] },
  98. Query: { [Function] base: [Object] },
  99. '$__insertMany': [Function],
  100. insertMany: [Function],
  101. '$init': Promise { emitter: [Object], emitted: [Object], ended: false } } }
  102. 100 'Database error' { CastError: Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"
  103. at new CastError (C:\work\sas\kurt-project\node_modules\mongoose\lib\error\cast.js:27:11)
  104. at ObjectId.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:158:13)
  105. at ObjectId.SchemaType._castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1088:15)
  106. at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:198:15)
  107. at C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1015:18
  108. at Array.map (<anonymous>)
  109. at ObjectId.handleArray (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1014:14)
  110. at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:196:20)
  111. at ObjectId.SchemaType.castForQueryWrapper (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1040:17)
  112. at cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\cast.js:250:39)
  113. at model.Query.Query.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:3302:12)
  114. at model.Query.Query._castConditions (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1292:10)
  115. at model.Query.Query._find (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1307:8)
  116. at C:\work\sas\kurt-project\node_modules\kareem\index.js:250:8
  117. at C:\work\sas\kurt-project\node_modules\kareem\index.js:23:7
  118. at _combinedTickCallback (internal/process/next_tick.js:131:7)
  119. at process._tickDomainCallback (internal/process/next_tick.js:218:9)
  120. message: 'Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"',
  121. name: 'CastError',
  122. stringValue: '"5b0e42f80884074730945d68-1529052540305-1.PNG"',
  123. kind: 'ObjectId',
  124. value: '5b0e42f80884074730945d68-1529052540305-1.PNG',
  125. path: '_id',
  126. reason: undefined,
  127. model:
  128. { [Function: model]
  129. hooks: Kareem { _pres: {}, _posts: {} },
  130. base:
  131. Mongoose {
  132. connections: [Array],
  133. models: [Object],
  134. modelSchemas: [Object],
  135. options: [Object],
  136. plugins: [Array] },
  137. modelName: 'medias',
  138. model: [Function: model],
  139. db:
  140. NativeConnection {
  141. base: [Object],
  142. collections: [Object],
  143. models: [Object],
  144. config: [Object],
  145. replica: false,
  146. hosts: null,
  147. host: 'localhost',
  148. port: 27017,
  149. user: null,
  150. pass: null,
  151. name: 'kurt',
  152. options: null,
  153. otherDbs: [],
  154. states: [Object],
  155. _readyState: 1,
  156. _closeCalled: false,
  157. _hasOpened: true,
  158. _listening: false,
  159. _connectionOptions: {},
  160. db: [Object] },
  161. discriminators: undefined,
  162. '$appliedMethods': true,
  163. '$appliedHooks': true,
  164. _events: { init: [Function], save: [Function] },
  165. _eventsCount: 2,
  166. schema:
  167. Schema {
  168. obj: [Object],
  169. paths: [Object],
  170. aliases: {},
  171. subpaths: {},
  172. virtuals: [Object],
  173. singleNestedPaths: [Object],
  174. nested: {},
  175. inherits: {},
  176. callQueue: [Array],
  177. _indexes: [],
  178. methods: {},
  179. statics: {},
  180. tree: [Object],
  181. query: {},
  182. childSchemas: [Array],
  183. plugins: [Array],
  184. s: [Object],
  185. _userProvidedOptions: {},
  186. options: [Object],
  187. '$globalPluginsApplied': true },
  188. collection:
  189. NativeCollection {
  190. collection: [Object],
  191. opts: [Object],
  192. name: 'medias',
  193. collectionName: 'medias',
  194. conn: [Object],
  195. queue: [],
  196. buffer: false,
  197. emitter: [Object] },
  198. Query: { [Function] base: [Object] },
  199. '$__insertMany': [Function],
  200. insertMany: [Function],
  201. '$init': Promise { emitter: [Object], emitted: [Object], ended: false } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement