Microsoft-Rewards-Farmer icon indicating copy to clipboard operation
Microsoft-Rewards-Farmer copied to clipboard

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

Open Lemon553311-dev opened this issue 1 year ago • 7 comments

Before submitting a bug report...

  • [X] This bug wasn't already reported. (I have checked every bug report on GitHub)

Title

  • [X] The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

When the bot starts desktop edge bing searches ([BING] Starting Desktop Edge Bing searches...) it crashes because of this error

Copy and paste your error

 [ERROR] JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "C:\Users\user\Downloads\Microsoft-Rewards-Farmer-master\main.py", line 24, in main
    executeBot(currentAccount, notifier, args)
  File "C:\Users\user\Downloads\Microsoft-Rewards-Farmer-master\main.py", line 141, in executeBot
    accountPointsCounter = Searches(desktopBrowser).bingSearches(
  File "C:\Users\user\Downloads\Microsoft-Rewards-Farmer-master\src\searches.py", line 57, in bingSearches
    search_terms = self.getGoogleTrends(numberOfSearches)
  File "C:\Users\user\Downloads\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_x64__qbz5n2kfra8p0\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_x64__qbz5n2kfra8p0\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

image

Value of dashboard variable

https://gist.github.com/Lemon553311-dev/8a756f4181dcea9d70d48ad0b99ea81c

Lemon553311-dev avatar Nov 26 '23 09:11 Lemon553311-dev

Just use the corrected program made by nicoacu, he already solved it the last week: https://github.com/nicoacu/Microsoft-Rewards-Farmer/tree/8dd874c4853e787e754fe5bcf3a69480921de6dd

alfaplays avatar Nov 28 '23 10:11 alfaplays

Just use the corrected program made by nicoacu, he already solved it the last week: https://github.com/nicoacu/Microsoft-Rewards-Farmer/tree/8dd874c4853e787e754fe5bcf3a69480921de6dd

Seconded. I just downloaded this, unzipped it and let it run from the folder it created and it's working great so far.

Lectoid avatar Nov 30 '23 14:11 Lectoid

Just use the corrected program made by nicoacu, he already solved it the last week: https://github.com/nicoacu/Microsoft-Rewards-Farmer/tree/8dd874c4853e787e754fe5bcf3a69480921de6dd

I am having the same problem. I tried this, but I got the same error.

gufunkt-tacos avatar Dec 15 '23 10:12 gufunkt-tacos

Me too. The fork attached there did not solve any issue.

пт, 15 дек. 2023 г., 12:50 gufunkt-tacos @.***>:

Just use the corrected program made by nicoacu, he already solved it the last week: https://github.com/nicoacu/Microsoft-Rewards-Farmer/tree/8dd874c4853e787e754fe5bcf3a69480921de6dd

I am having the same problem. I tried this, but I got the same error.

— Reply to this email directly, view it on GitHub https://github.com/charlesbel/Microsoft-Rewards-Farmer/issues/408#issuecomment-1857673056, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONDWOKIOKXYRBJWBIWQNMLYJQTORAVCNFSM6AAAAAA72XQO22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXGY3TGMBVGY . You are receiving this because you authored the thread.Message ID: @.***>

Lemon553311-dev avatar Dec 15 '23 12:12 Lemon553311-dev

It's been a while since I had this error. I recommend you using the original one with Visual Studio Code, I'm using the script rn and works with less errors than with the terminal. Make sure you have Chrome and the requirements.txt updated.

alfaplays avatar Dec 15 '23 15:12 alfaplays

It's been a while since I had this error. I recommend you using the original one with Visual Studio Code, I'm using the script rn and works with less errors than with the terminal. Make sure you have Chrome and the requirements.txt updated.

Thanks for the quick reply. I tried to do what you said but I am still getting the same error. Any more help would be greatly appreciated. Hopefully, I'm not doing anything stupid.

image

gufunkt-tacos avatar Dec 15 '23 22:12 gufunkt-tacos

Any update on this?

((((I used to use a website called Bing rewards farmer as an alternative and it doesn't work for some reason (likely Microsoft put up some restriction/filter on types of searches) )))).

Is this project no longer maintained?

сб, 16 дек. 2023 г., 00:51 gufunkt-tacos @.***>:

It's been a while since I had this error. I recommend you using the original one with Visual Studio Code, I'm using the script rn and works with less errors than with the terminal. Make sure you have Chrome and the requirements.txt updated.

Thanks for the quick reply. I tried to do what you said but I am still getting the same error. Any more help would be greatly appreciated. Hopefully, I'm not doing anything stupid.

image.png (view on web) https://github.com/charlesbel/Microsoft-Rewards-Farmer/assets/99559662/c1ad48f2-7407-4805-853f-2e388bde2b4d

— Reply to this email directly, view it on GitHub https://github.com/charlesbel/Microsoft-Rewards-Farmer/issues/408#issuecomment-1858581542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AONDWOPVOSD7D2D7PNGVAZTYJTH6ZAVCNFSM6AAAAAA72XQO22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYGU4DCNJUGI . You are receiving this because you authored the thread.Message ID: @.***>

Lemon553311-dev avatar Dec 20 '23 13:12 Lemon553311-dev