NeweggBot icon indicating copy to clipboard operation
NeweggBot copied to clipboard

Leaks Memory

Open ArdonnieIV opened this issue 4 years ago • 5 comments

If the bot has to wait long enough for the product to come in stock, it will eventually crash because the code is leaking memory. I am new to puppeteer and selectors, but I believe for every 'timeout' and 'waitforselector' you have to manually delete the objects you created.

I have my own branch of the bot and I switched to chrome, so eventually, I end up at the 'Aw Snap!' page. I figured I could just add an if statement and press the 'Reload' button if it ever came up. However, there does not seem to exist a way to view the HTML on that page so I don't know what the selector would be for the 'Reload' button. This is obviously not solving the real problem but would work as a quick fix.

ArdonnieIV avatar Oct 25 '20 16:10 ArdonnieIV

@ArdonnieIV Thanks for you work! I almost have your fork working. I was wondering if you're still working on it. I seem to have a problem with the bot not typing in the CVV for my card so it just hangs there.

KeratinL avatar Nov 15 '20 05:11 KeratinL

@KeratinL, Hey! I've ran into that problem a few times. It's likely a problem with the pacing and timing of the bot. I recommend increasing the time out time before the ccv is entered or switching it to 'load' rather than a specified amount of time.

Also I can confidently say my bot works now. Yesterday I was able to purchase an rtx 3070. I'm thinking about making a video tutorial on the setup process.

ArdonnieIV avatar Nov 25 '20 16:11 ArdonnieIV

@ArdonnieIV Hey, thank you so much for getting back to me I really appreciate it. Glad to hear you got a card! That's awesome! Gratz! Also thank you for this bot!

KeratinL avatar Nov 25 '20 17:11 KeratinL

@KeratinL I am working on uploading the version that worked for me. I tried to implement something that would read your emails incase you got a validation problem. But I found a different way around it. So i recommend cloning my branch later today. Let me know if you run into any problems.

ArdonnieIV avatar Nov 25 '20 21:11 ArdonnieIV

@KeratinL I am working on uploading the version that worked for me. I tried to implement something that would read your emails incase you got a validation problem. But I found a different way around it. So i recommend cloning my branch later today. Let me know if you run into any problems.

If you can upload a tutorial and the bot that worked for you I would be forever grateful and tip you lol. I’ve been trying forever and while I’m not a coder, I am willing to do anything at this point.

lobster3579 avatar Dec 10 '20 08:12 lobster3579