You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@Testcoin_Explorer:/home/explorer# sudo node scripts/sync.js index update
script launched with pid: 2631
Error during Stats Update: { CastError: Cast to number failed for value "NaN" at path "supply"
at new CastError (/home/explorer/node_modules/mongoose/lib/error/cast.js:29:11)
at SchemaNumber.cast (/home/explorer/node_modules/mongoose/lib/schema/number.js:315:11)
at SchemaNumber.SchemaType.applySetters (/home/explorer/node_modules/mongoose/lib/schematype.js:969:12)
at SchemaNumber.SchemaType._castForQuery (/home/explorer/node_modules/mongoose/lib/schematype.js:1383:15)
at SchemaNumber.castForQuery (/home/explorer/node_modules/mongoose/lib/schema/number.js:367:14)
at SchemaNumber.SchemaType.castForQueryWrapper (/home/explorer/node_modules/mongoose/lib/schematype.js:1352:15)
at castUpdateVal (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:463:19)
at walkUpdatePath (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:290:22)
at castUpdate (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:81:18)
at model.Query._castUpdate (/home/explorer/node_modules/mongoose/lib/query.js:4442:10)
at castDoc (/home/explorer/node_modules/mongoose/lib/query.js:4470:18)
at model.Query.Query._findAndModify (/home/explorer/node_modules/mongoose/lib/query.js:3448:22)
at model.Query. (/home/explorer/node_modules/mongoose/lib/query.js:3001:8)
at model.Query._wrappedThunk [as _findOneAndUpdate] (/home/explorer/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/home/explorer/node_modules/kareem/index.js:369:33)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
message: 'Cast to number failed for value "NaN" at path "supply"',
name: 'CastError',
stringValue: '"NaN"',
kind: 'number',
value: NaN,
path: 'supply',
reason: undefined }
events.js:183
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'last' of undefined
at /home/explorer/lib/database.js:771:31
at /home/explorer/node_modules/mongoose/lib/model.js:4599:16
at model.Query.Query._findAndModify (/home/explorer/node_modules/mongoose/lib/query.js:3461:16)
at model.Query. (/home/explorer/node_modules/mongoose/lib/query.js:3001:8)
at model.Query._wrappedThunk [as _findOneAndUpdate] (/home/explorer/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/home/explorer/node_modules/kareem/index.js:369:33)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
root@Testcoin_Explorer:/home/explorer#
The text was updated successfully, but these errors were encountered:
### Hello Any one Please solve this issue ?
root@Testcoin_Explorer:/home/explorer# sudo node scripts/sync.js index update
script launched with pid: 2631
Error during Stats Update: { CastError: Cast to number failed for value "NaN" at path "supply"
at new CastError (/home/explorer/node_modules/mongoose/lib/error/cast.js:29:11)
at SchemaNumber.cast (/home/explorer/node_modules/mongoose/lib/schema/number.js:315:11)
at SchemaNumber.SchemaType.applySetters (/home/explorer/node_modules/mongoose/lib/schematype.js:969:12)
at SchemaNumber.SchemaType._castForQuery (/home/explorer/node_modules/mongoose/lib/schematype.js:1383:15)
at SchemaNumber.castForQuery (/home/explorer/node_modules/mongoose/lib/schema/number.js:367:14)
at SchemaNumber.SchemaType.castForQueryWrapper (/home/explorer/node_modules/mongoose/lib/schematype.js:1352:15)
at castUpdateVal (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:463:19)
at walkUpdatePath (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:290:22)
at castUpdate (/home/explorer/node_modules/mongoose/lib/helpers/query/castUpdate.js:81:18)
at model.Query._castUpdate (/home/explorer/node_modules/mongoose/lib/query.js:4442:10)
at castDoc (/home/explorer/node_modules/mongoose/lib/query.js:4470:18)
at model.Query.Query._findAndModify (/home/explorer/node_modules/mongoose/lib/query.js:3448:22)
at model.Query. (/home/explorer/node_modules/mongoose/lib/query.js:3001:8)
at model.Query._wrappedThunk [as _findOneAndUpdate] (/home/explorer/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/home/explorer/node_modules/kareem/index.js:369:33)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
message: 'Cast to number failed for value "NaN" at path "supply"',
name: 'CastError',
stringValue: '"NaN"',
kind: 'number',
value: NaN,
path: 'supply',
reason: undefined }
events.js:183
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'last' of undefined
at /home/explorer/lib/database.js:771:31
at /home/explorer/node_modules/mongoose/lib/model.js:4599:16
at model.Query.Query._findAndModify (/home/explorer/node_modules/mongoose/lib/query.js:3461:16)
at model.Query. (/home/explorer/node_modules/mongoose/lib/query.js:3001:8)
at model.Query._wrappedThunk [as _findOneAndUpdate] (/home/explorer/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
at process.nextTick (/home/explorer/node_modules/kareem/index.js:369:33)
at _combinedTickCallback (internal/process/next_tick.js:132:7)
at process._tickCallback (internal/process/next_tick.js:181:9)
root@Testcoin_Explorer:/home/explorer#
The text was updated successfully, but these errors were encountered: