Advertisement
Guest User

Untitled

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