pepzwee / node-csgo-web-tradebot

Web based CS:GO trade bot. Similar to CSGOSell.
MIT License
147 stars 59 forks source link

ERR: CALLBACK #163

Closed Suchismit4 closed 4 years ago

Suchismit4 commented 4 years ago

C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:322 if (fn === null) throw new Error("Callback was already called."); ^

Error: Callback was already called. at C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:322:36 at startFloatChecker (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\lib\bots.js:99:57) at async.eachOfSeries (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\lib\bots.js:172:20) at wrapper (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:272:20) at replenish (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:439:29) at C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:449:13 at eachOfLimit$1 (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:475:34) at awaitable(eachOfLimit$1) (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:208:32) at Object.eachOfSeries (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:662:16) at Object.awaitable(eachOfSeries) (C:\Users\HP\Desktop\node-csgo-web-tradebot-master\node-csgo-web-tradebot-master\node_modules\async\dist\async.js:208:32)

Suchismit4 commented 4 years ago

Request a review & possible fix.

iDefineHD commented 4 years ago

I am unable to recreate this error at the moment, what version of node are you running?

pepzwee commented 4 years ago

Possibly related to float checking, does the account have CS:GO in the library

Suchismit4 commented 4 years ago

I am using, node v10.16.3 and yes the account has CSGO in the lib.

Suchismit4 commented 4 years ago

After this was redone ( i believe) by iDefineHD, the thing broke.. it doesn't even load now...

  1. it starts and then throws this error.
  2. The website gets online for like 4s and then breaks Oh! also

Failed to create folder/file, please add manually. [!] All bots online. [FloatChecker:Progress] Starting to acquire floats for bot "bot_1". This can take a while if you have a lot of items. [FloatChecker:Progress] Done floats for bot "bot_1".

What failed "folder/file"?

iDefineHD commented 4 years ago

Hi, that error is generic, will sort that out. The folder is polls folder. which would contain bot_1.json, all I simply fixed there was the callback error that the updated package was requesting, which should trigger upon the folder/file not being there. and just general update of packages, all tested before a push with no errors using node 12. As said, i can update the message to be a little more informative, as looking at it now, it is very vague.

iDefineHD commented 4 years ago

Pusing some more code, from further tests, I gathered this was from not having the polls folder with its json file, I have now changed to code to make a directory and then write the file, something that wasnt in the original, but now is. Going to push it now, all my tests have passed, and all seems to be functioning.

iDefineHD commented 4 years ago

Please use the last commit. Something funky was going on and not commiting properly. Latest should sort it. I added the code to auto generate the files you need, The error was reproduced by me with the fix being to add the files, Let me know if you are still having trouble.

Suchismit4 commented 4 years ago

Okay! I will have a look. I will get back to you if there's any more problem. Closing this for now.

iDefineHD commented 4 years ago

Okay! I will have a look. I will get back to you if there's any more problem. Closing this for now.

Sure, np. Let me know. Other than that, I can't seem any other fix, as it was reproduced and fixed with the above.