-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1.1.0] Error: Can't get google trends; 'AssertionError' #206
Comments
Adjust retry config in src.utils.Utils.makeRequestsSession |
I played around with values of total=x, backoff_factor=y (in case that was what you mean with your comment) No luck so far the error persists. |
What'd you adjust the values to?
…________________________________
From: Markus ***@***.***>
Sent: Tuesday, September 10, 2024 3:04 PM
To: klept0/MS-Rewards-Farmer ***@***.***>
Cc: Cal Williams ***@***.***>; Comment ***@***.***>
Subject: Re: [klept0/MS-Rewards-Farmer] [v1.1.0] Error: Can't get google trends; 'AssertionError' (Issue #206)
Adjust retry config in src.utils.Utils.makeRequestsSession
I played around with values of total=x, backoff_factor=y (in case that was what you mean with your comment)
No luck so farm the error persists.
—
Reply to this email directly, view it on GitHub<#206 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACHZF2AG7UYOL5OZF73DYR3ZV47FXAVCNFSM6AAAAABN4SGCPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBRHAYDAMBRHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Can confirm the error. Changing the count to 200 didn't fix it. I don't know what backoff factor does, so I kept it at 1 |
Works for me, I'd suggest trying the develop branch. You can also look at the code and try getting Google trends via a browser to see if the problem's isolated. |
I tried the values of the previous releases and then I'll try the dev branch next as you suggested. Edit: Dev branch doesn't work at all:
|
|
Before submitting a bug report...
This bug wasn't already reported.
(I have checked every bug report on GitHub)
I've cleared the sessions folder.
Branch
master
Commit
0f0052c
Describe the bug
When the script comes to the point where the searches should be done, it shows an error and force-closes.
Copy and paste your error
2024-09-09 15:11:00,419 [INFO] [BING] Remaining searches=26
2024-09-09 15:11:04,751 [DEBUG] google_trends before load = []
2024-09-09 15:11:05,001 [DEBUG] in exit exc_type=<class 'AssertionError'> exc_value= traceback=<traceback object at 0x0000026109608D80>
2024-09-09 15:11:06,472 [ERROR]
Traceback (most recent call last):
File "C:\Users\LKA-Berlin0472\Desktop\MS-Rewards-Farmer-1.1.0\main.py", line 40, in main
earned_points = executeBot(currentAccount, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LKA-Berlin0472\Desktop\MS-Rewards-Farmer-1.1.0\main.py", line 249, in executeBot
searches.bingSearches()
File "C:\Users\LKA-Berlin0472\Desktop\MS-Rewards-Farmer-1.1.0\src\searches.py", line 129, in bingSearches
trends = self.getGoogleTrends(desktopAndMobileRemaining.getTotal())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\LKA-Berlin0472\Desktop\MS-Rewards-Farmer-1.1.0\src\searches.py", line 82, in getGoogleTrends
r.status_code == requests.codes.ok
AssertionError
2024-09-09 15:11:06,477 [WARNING] config-private.yaml doesn't exist
2024-09-09 15:11:06,480 [DEBUG] No urls found, not sending notification
2024-09-09 15:11:06,482 [INFO] [POINTS] Data saved for the next day.
Screenshots
none
Value of dashboard variable
none
The text was updated successfully, but these errors were encountered: