doufa5001 2015-09-05 22:55
浏览 94

胜利发生后,SteamBot崩溃

I have an issue with a SteamBot I have recently set up to handle deposits and winnings for a CS:GO Gambling site. It works well for depositing and sending trade offers for the first couple of minutes, before throwing me this error:

C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\Parser.js:82
        throw err;
              ^
Error: number format error: empty string
    at Error (native)
    at Function.Long.fromString (C:\Users\Frederik\Desktop\bot
ode_modules\steam-tradeoffers
ode_modules\long\dist\Long.js:180:19)
    at toAccountId (C:\Users\Frederik\Desktop\bot
ode_modules\steam-tradeoffers\index.js:376:15)
    at SteamTradeOffers.makeOffer (C:\Users\Frederik\Desktop\bot
ode_modules\steam-tradeoffers\index.js:396:42)
    at Query._callback (C:\Users\Frederik\Desktop\bot\sell.js:160:13)
    at Query.Sequence.end (C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\sequences\Sequence.js:96:24)
    at Query._handleFinalResultPacket (C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\sequences\Query.js:144:8)
    at Query.EofPacket (C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\sequences\Query.js:128:8)
    at Protocol._parsePacket (C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\Protocol.js:271:23)
    at Parser.write (C:\Users\Frederik\Desktop\bot
ode_modules\mysql\lib\protocol\Parser.js:77:12)

I have searched everywhere for the solution to this, however haven't managed to find anything. Any help or solutions would be very much appreciated! I am unsure as to what piece of code may be causing the issue, so here is a pastebin with the whole lot of it: http://pastebin.com/x9YkhkCX

Thank you!

  • 写回答

1条回答 默认 最新

  • dongpao1905 2015-10-26 23:01
    关注

    At a glance I would assume that partnerSteamId: row[i].userid is your problem. Check to make sure that row[i].userid is not null or an empty string.

    评论

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题