Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { ValidationError: Trade validation failed: value: Cast to Number failed for value "NaN" at path "value"
- at ValidationError.inspect (E:\Projects\SteamBots\node_modules\mongoose\lib\error\validation.js:57:23)
- at formatValue (util.js:337:36)
- at inspect (util.js:197:10)
- at exports.format (util.js:69:24)
- at Console.log (console.js:106:24)
- at Trade.newTrade (E:\Projects\SteamBots\lib\SteamManager.js:297:27)
- at E:\Projects\SteamBots\node_modules\mongoose\lib\model.js:3919:16
- at E:\Projects\SteamBots\node_modules\mongoose\lib\services\model\applyHooks.js:167:17
- at _combinedTickCallback (internal/process/next_tick.js:131:7)
- at process._tickCallback (internal/process/next_tick.js:180:9)
- errors:
- { value:
- { CastError: Cast to Number failed for value "NaN" at path "value"
- at CastError (E:\Projects\SteamBots\node_modules\mongoose\lib\error\cast.js:27:11)
- at model.Document.set (E:\Projects\SteamBots\node_modules\mongoose\lib\document.js:769:7)
- at model.set [as value] (E:\Projects\SteamBots\node_modules\mongoose\lib\services\document\compile.js:140:25)
- at Function.TradeSchema.statics.newTrade (E:\Projects\SteamBots\models\trade.js:53:18)
- at offer.send (E:\Projects\SteamBots\lib\SteamManager.js:295:21)
- at SteamCommunity.manager._community.httpRequestPost (E:\Projects\SteamBots\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:405:4)
- at Request._callback (E:\Projects\SteamBots\node_modules\steamcommunity\components\http.js:67:15)
- at Request.self.callback (E:\Projects\SteamBots\node_modules\request\request.js:186:22)
- at emitTwo (events.js:125:13)
- at Request.emit (events.js:213:7)
- at Request.<anonymous> (E:\Projects\SteamBots\node_modules\request\request.js:1163:10)
- at emitOne (events.js:115:13)
- at Request.emit (events.js:210:7)
- at IncomingMessage.<anonymous> (E:\Projects\SteamBots\node_modules\request\request.js:1085:12)
- at Object.onceWrapper (events.js:314:30)
- at emitNone (events.js:110:20)
- message: 'Cast to Number failed for value "NaN" at path "value"',
- name: 'CastError',
- stringValue: '"NaN"',
- kind: 'Number',
- value: NaN,
- path: 'value',
- reason: [Object] } },
- _message: 'Trade validation failed',
- name: 'ValidationError' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement