Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INFO KURT-B2B: B2B Request: (GET) for /tenants
- ERROR KURT-B2B: An error occured. Details: { CastError: Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"
- at new CastError (C:\work\sas\kurt-project\node_modules\mongoose\lib\error\cast.js:27:11)
- at ObjectId.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:158:13)
- at ObjectId.SchemaType._castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1088:15)
- at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:198:15)
- at C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1015:18
- at Array.map (<anonymous>)
- at ObjectId.handleArray (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1014:14)
- at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:196:20)
- at ObjectId.SchemaType.castForQueryWrapper (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1040:17)
- at cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\cast.js:250:39)
- at model.Query.Query.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:3302:12)
- at model.Query.Query._castConditions (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1292:10)
- at model.Query.Query._find (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1307:8)
- at C:\work\sas\kurt-project\node_modules\kareem\index.js:250:8
- at C:\work\sas\kurt-project\node_modules\kareem\index.js:23:7
- at _combinedTickCallback (internal/process/next_tick.js:131:7)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- message: 'Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"',
- name: 'CastError',
- stringValue: '"5b0e42f80884074730945d68-1529052540305-1.PNG"',
- kind: 'ObjectId',
- value: '5b0e42f80884074730945d68-1529052540305-1.PNG',
- path: '_id',
- reason: undefined,
- model:
- { [Function: model]
- hooks: Kareem { _pres: {}, _posts: {} },
- base:
- Mongoose {
- connections: [Array],
- models: [Object],
- modelSchemas: [Object],
- options: [Object],
- plugins: [Array] },
- modelName: 'medias',
- model: [Function: model],
- db:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- hosts: null,
- host: 'localhost',
- port: 27017,
- user: null,
- pass: null,
- name: 'kurt',
- options: null,
- otherDbs: [],
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: {},
- db: [Object] },
- discriminators: undefined,
- '$appliedMethods': true,
- '$appliedHooks': true,
- _events: { init: [Function], save: [Function] },
- _eventsCount: 2,
- schema:
- Schema {
- obj: [Object],
- paths: [Object],
- aliases: {},
- subpaths: {},
- virtuals: [Object],
- singleNestedPaths: [Object],
- nested: {},
- inherits: {},
- callQueue: [Array],
- _indexes: [],
- methods: {},
- statics: {},
- tree: [Object],
- query: {},
- childSchemas: [Array],
- plugins: [Array],
- s: [Object],
- _userProvidedOptions: {},
- options: [Object],
- '$globalPluginsApplied': true },
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'medias',
- collectionName: 'medias',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- Query: { [Function] base: [Object] },
- '$__insertMany': [Function],
- insertMany: [Function],
- '$init': Promise { emitter: [Object], emitted: [Object], ended: false } } }
- 100 'Database error' { CastError: Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"
- at new CastError (C:\work\sas\kurt-project\node_modules\mongoose\lib\error\cast.js:27:11)
- at ObjectId.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:158:13)
- at ObjectId.SchemaType._castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1088:15)
- at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:198:15)
- at C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1015:18
- at Array.map (<anonymous>)
- at ObjectId.handleArray (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1014:14)
- at ObjectId.castForQuery (C:\work\sas\kurt-project\node_modules\mongoose\lib\schema\objectid.js:196:20)
- at ObjectId.SchemaType.castForQueryWrapper (C:\work\sas\kurt-project\node_modules\mongoose\lib\schematype.js:1040:17)
- at cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\cast.js:250:39)
- at model.Query.Query.cast (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:3302:12)
- at model.Query.Query._castConditions (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1292:10)
- at model.Query.Query._find (C:\work\sas\kurt-project\node_modules\mongoose\lib\query.js:1307:8)
- at C:\work\sas\kurt-project\node_modules\kareem\index.js:250:8
- at C:\work\sas\kurt-project\node_modules\kareem\index.js:23:7
- at _combinedTickCallback (internal/process/next_tick.js:131:7)
- at process._tickDomainCallback (internal/process/next_tick.js:218:9)
- message: 'Cast to ObjectId failed for value "5b0e42f80884074730945d68-1529052540305-1.PNG" at path "_id" for model "medias"',
- name: 'CastError',
- stringValue: '"5b0e42f80884074730945d68-1529052540305-1.PNG"',
- kind: 'ObjectId',
- value: '5b0e42f80884074730945d68-1529052540305-1.PNG',
- path: '_id',
- reason: undefined,
- model:
- { [Function: model]
- hooks: Kareem { _pres: {}, _posts: {} },
- base:
- Mongoose {
- connections: [Array],
- models: [Object],
- modelSchemas: [Object],
- options: [Object],
- plugins: [Array] },
- modelName: 'medias',
- model: [Function: model],
- db:
- NativeConnection {
- base: [Object],
- collections: [Object],
- models: [Object],
- config: [Object],
- replica: false,
- hosts: null,
- host: 'localhost',
- port: 27017,
- user: null,
- pass: null,
- name: 'kurt',
- options: null,
- otherDbs: [],
- states: [Object],
- _readyState: 1,
- _closeCalled: false,
- _hasOpened: true,
- _listening: false,
- _connectionOptions: {},
- db: [Object] },
- discriminators: undefined,
- '$appliedMethods': true,
- '$appliedHooks': true,
- _events: { init: [Function], save: [Function] },
- _eventsCount: 2,
- schema:
- Schema {
- obj: [Object],
- paths: [Object],
- aliases: {},
- subpaths: {},
- virtuals: [Object],
- singleNestedPaths: [Object],
- nested: {},
- inherits: {},
- callQueue: [Array],
- _indexes: [],
- methods: {},
- statics: {},
- tree: [Object],
- query: {},
- childSchemas: [Array],
- plugins: [Array],
- s: [Object],
- _userProvidedOptions: {},
- options: [Object],
- '$globalPluginsApplied': true },
- collection:
- NativeCollection {
- collection: [Object],
- opts: [Object],
- name: 'medias',
- collectionName: 'medias',
- conn: [Object],
- queue: [],
- buffer: false,
- emitter: [Object] },
- Query: { [Function] base: [Object] },
- '$__insertMany': [Function],
- insertMany: [Function],
- '$init': Promise { emitter: [Object], emitted: [Object], ended: false } } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement