Closed nmcc1212 closed 3 years ago
First and foremost, your Discord groups are not in the correct format. Please refer to the documentation about getting the proper ID number from discord and how to format it.
This could be related to the timeouts, but probably not.
Is the Pi itself headless? Please try opening some of these addresses from the Raspberry Pi to see if you can reproduce the problem in a normal browser:
https://www.amazon.co.uk/dp/B08H93GKNJ https://www.amazon.co.uk/dp/B08GD9MNZB https://www.currys.co.uk/gbuk/gaming/console-gaming/consoles/microsoft-xbox-series-x-1-tb-10203371-pdt.html https://www.currys.co.uk/gbuk/gaming/console-gaming/consoles/microsoft-xbox-series-s-512-gb-ssd-10205195-pdt.html https://www.game.co.uk/en/playstation-5-digital-edition-2826341 https://www.game.co.uk/en/ea-sports-fifa-21-500gb-ps4-bundle-2832947
My pi is connected to a monitor via hdmi, but there is no keyboard or mouse connected. when using chromium on the pi the websites load fine
I control the pi over vnc, the display is just for gui use
As far as my experience with an headless system goes: On a ryzen 1800x ( 8 Cores / 4 GHz ) and 32 GB of RAM , the system usage of this script is around 20-50% percent from time to time. The system is based on Debian 9.5. I would assume that the load from 8 stores and 1 product could drive your system to slowing down / choke. please run an additional SSH connection and check htop. i assume that the Load is maxed out on RAM and CPU usage.
Please keep in mind, that the bot opens in the background many Chrome Tabs ( and closes them again ) which is massively using CPU / Memory ressources, which leads to the point where the bot becomes a timeout because the site is not loaded up in 30000 ms as suspected.
This was the issue, in Netdata I was getting 100% cpu usage when the program was running (about 15% at idle)
Expected Behavior
report instock or out of stock on command line
Current Behavior
All stores have error Navigation timeout of 30,000ms exceeded
Steps to Reproduce
Environment
OS:
Raspberry Pi running Raspberry Pi OS
dotenv file:
Logs