0

我最近为处理 CS:GO 赌博网站的存款和奖金而设置的 SteamBot 存在问题。在向我抛出此错误之前,它可以很好地在前几分钟存入和发送交易报价:

C:\Users\Frederik\Desktop\bot\node_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\node_modules\steam-tradeoffers\node_modules\long\dist\Long.js:180:19)
    at toAccountId (C:\Users\Frederik\Desktop\bot\node_modules\steam-tradeoffers\index.js:376:15)
    at SteamTradeOffers.makeOffer (C:\Users\Frederik\Desktop\bot\node_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\node_modules\mysql\lib\protocol\sequences\Sequence.js:96:24)
    at Query._handleFinalResultPacket (C:\Users\Frederik\Desktop\bot\node_modules\mysql\lib\protocol\sequences\Query.js:144:8)
    at Query.EofPacket (C:\Users\Frederik\Desktop\bot\node_modules\mysql\lib\protocol\sequences\Query.js:128:8)
    at Protocol._parsePacket (C:\Users\Frederik\Desktop\bot\node_modules\mysql\lib\protocol\Protocol.js:271:23)
    at Parser.write (C:\Users\Frederik\Desktop\bot\node_modules\mysql\lib\protocol\Parser.js:77:12)

我到处寻找解决方案,但没有找到任何东西。任何帮助或解决方案将不胜感激!我不确定哪段代码可能导致问题,所以这里有一个包含全部内容的 pastebin:http: //pastebin.com/x9YkhkCX

谢谢!

4

1 回答 1

0

乍一看,我认为这partnerSteamId: row[i].userid是您的问题。检查以确保它row[i].userid不是 null 或空字符串。

于 2015-10-26T23:01:58.870 回答