charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
975 stars 261 forks source link

[BUG] JSONDecodeError : Expecting value: line 1 column 1 (char 0) #355

Open beenruuu opened 1 year ago

beenruuu commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

I have this error, how i can fix this?

Copy and paste your error

2023-09-18 16:25:31,140 [ERROR] JSONDecodeError: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "C:\Users\beenruuu\Desktop\Microsoft-Rewards-Farmer-master\main.py", line 24, in main executeBot(currentAccount, notifier, args) File "C:\Users\beenruuu\Desktop\Microsoft-Rewards-Farmer-master\main.py", line 141, in executeBot accountPointsCounter = Searches(desktopBrowser).bingSearches( File "C:\Users\beenruuu\Desktop\Microsoft-Rewards-Farmer-master\src\searches.py", line 57, in bingSearches search_terms = self.getGoogleTrends(numberOfSearches) File "C:\Users\beenruuu\Desktop\Microsoft-Rewards-Farmer-master\src\searches.py", line 27, in getGoogleTrends trends = json.loads(r.text[6:]) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64qbz5n2kfra8p0\lib\json\init.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Screenshots

Windows PowerShell 18_09_2023 16_25_54

Value of dashboard variable

idk

beenruuu commented 1 year ago

I have closed the cookies pop-up window. If you could make it remove it automatically it would be fine, I also deleted the log. I also want to know how I can make the window full screen since it recognizes a screen size that I don't have.

Lemon553311-dev commented 9 months ago

I have the same problem :(