klept0 / MS-Rewards-Farmer

A simple bot that uses Selenium to farm M$ Rewards in Python
MIT License
237 stars 49 forks source link

Frequently stop searching #178

Closed Ices-Eyes closed 1 month ago

Ices-Eyes commented 2 months ago

Before submitting a bug report...

Title

Branch

master

Commit

Latest

Describe the bug

Actually, I have frequently a timeout error during the search process, both desktop or mobile. Also, after that the script exit but no notificaton sended, either wit ALWAYS conf.

Copy and paste your error

2024-08-11 22:58:02,348 [INFO] [BING] 12/14 2024-08-11 22:58:02,947 [DEBUG] terms=['stephen curry', 'stephen curry stats', 'stephen curry height', 'stephen curry underrated', 'stephen curry wallpaper', 'stephen curry shoes', 'stephen curry wallpaper 4k', 'stephen curry shooting form', 'stephen curry age', 'stephen curry under armour shoes', 'stephen curry net worth', 'stephen curry daughter'] 2024-08-11 22:58:02,947 [DEBUG] rootTerm=stephen curry 2024-08-11 22:58:23,140 [DEBUG] in exit exc_type=<class 'selenium.common.exceptions.TimeoutException'> exc_value=Message: Stacktrace:

0 0x5582c6a956aa

1 0x5582c6766600

2 0x5582c67b5bcb

3 0x5582c67b5eb1

4 0x5582c67f9b24

5 0x5582c67d88cd

6 0x5582c67f704a

7 0x5582c67d8643

8 0x5582c67a8d31

9 0x5582c67a979e

10 0x5582c6a5d23b

11 0x5582c6a611d2

12 0x5582c6a4a5f5

13 0x5582c6a61d62

14 0x5582c6a2f23f

15 0x5582c6a84e48

16 0x5582c6a85020

17 0x5582c6a9447c

18 0x7f62a2efb134

traceback=<traceback object at 0x7ff320451900> 2024-08-11 22:58:23,569 [ERROR] Traceback (most recent call last): File "/home/deb/MS-Rewards-Farmer-master/main.py", line 39, in main earned_points = executeBot(currentAccount, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/deb/MS-Rewards-Farmer-master/main.py", line 271, in executeBot searches.bingSearches() File "/home/deb/MS-Rewards-Farmer-master/src/searches.py", line 138, in bingSearches self.bingSearch() File "/home/deb/MS-Rewards-Farmer-master/src/searches.py", line 174, in bingSearch searchbar = self.browser.utils.waitUntilClickable( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/deb/MS-Rewards-Farmer-master/src/utils.py", line 74, in waitUntilClickable return WebDriverWait(self.webdriver, timeToWait).until( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/deb/.local/lib/python3.11/site-packages/selenium/webdriver/support/wait.py", line 105, in until raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: Stacktrace:

0 0x5582c6a956aa

1 0x5582c6766600

2 0x5582c67b5bcb

3 0x5582c67b5eb1

4 0x5582c67f9b24

5 0x5582c67d88cd

6 0x5582c67f704a

7 0x5582c67d8643

8 0x5582c67a8d31

9 0x5582c67a979e

10 0x5582c6a5d23b

11 0x5582c6a611d2

12 0x5582c6a4a5f5

13 0x5582c6a61d62

14 0x5582c6a2f23f

15 0x5582c6a84e48

16 0x5582c6a85020

17 0x5582c6a9447c

18 0x7f62a2efb134

2024-08-11 22:58:23,816 [INFO] [POINTS] Data saved for the next day.

Screenshots

NA

Value of dashboard variable

NA

cal4 commented 2 months ago

Try upping the timeout time at that call

Ices-Eyes commented 2 months ago

You mean higher than the 20 seconds default? Would try, but it seems a consistently time already!

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 7 days since being marked as stale.