NodeJS Steam bot

by csgobetter - 01-11-2015, 12:17 AM
Novice
Posts:
25
Joined:
Oct 2015
Likes:
1
Credits:
52
Reputation:
0
1 Year of Service
#1
OP
Posted: 01-11-2015, 12:17 AM (This post was last modified: 01-11-2015, 12:17 AM by csgobetter.)
Hello, ive been working with a NodeJS steam bot and have edited things so its not as buggy for the most part. [Public source bot]

But rarely the bot will crash with a parser error, ive been looking for solutions to this for about a week now and have not come to any luck.
Any help is much appreciated!

CRASH LOG: 
Code:
C:\Users\Steven\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\Steven\Desktop\bot\node_modules\steam-tradeoffers\node_modules\long\dist\Long.js:180:19)
   at toAccountId (C:\Users\Steven\Desktop\bot\node_modules\steam-tradeoffers\index.js:376:15)
   at SteamTradeOffers.makeOffer (C:\Users\Steven\Desktop\bot\node_modules\steam-tradeoffers\index.js:396:42)
   at Query._callback (C:\Users\Steven\Desktop\bot\sell.js:160:13)
   at Query.Sequence.end (C:\Users\Steven\Desktop\bot\node_modules\mysql\lib\protocol\sequences\Sequence.js:96:24)
   at Query._handleFinalResultPacket (C:\Users\Steven\Desktop\bot\node_modules\mysql\lib\protocol\sequences\Query.js:144:8)
   at Query.EofPacket (C:\Users\Steven\Desktop\bot\node_modules\mysql\lib\protocol\sequences\Query.js:128:8)
   at Protocol._parsePacket (C:\Users\Steven\Desktop\bot\node_modules\mysql\lib\protocol\Protocol.js:271:23)
   at Parser.write (C:\Users\Steven\Desktop\bot\node_modules\mysql\lib\protocol\Parser.js:77:12)
 
Ive got as far as its trying to read a string but its empty that is associated with an accountID.

Code:
at Function.Long.fromString (C:\Users\Steven\Desktop\bot\node_modules\steam-tradeoffers\node_modules\long\dist\Long.js:180:19)
 
Code:
at toAccountId (C:\Users\Steven\Desktop\bot\node_modules\steam-tradeoffers\index.js:376:15)

 
The next part is when it uses the account ID to send the steam offers.

Code:
offers.makeOffer ({
   partnerSteamId: row[i].userid,
   itemsFromMe: item,
   accessToken: row[i].token,
   itemsFromThem: [],
   message: 'Congratulations! You won a game on '+sitename+'. Your game ID is #'+gamenum
}, function(err,response){....

One thing that i dont understand though is the fact the it can sometimes crash after sending the trade offer which consists of completing these 2 procedures... ^^^
If anyone can help thanks!
Newbie
Posts:
15
Joined:
Jan 2017
Likes:
0
Credits:
20
Reputation:
0
1/2 Year of Service
#2
Posted: 17-05-2017, 04:04 PM
first, you posted this in the java section so maybe not too many people are familiar with node and javascript here ;)

you're referring to this one, right? https://github.com/Alex7Kom/node-steam-tradeoffers

I'd try to log out the string you're trying to convert to an accountId
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)