charlesbel / Microsoft-Rewards-Farmer

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

[BUG] Typo In Code Solved With ChatGpt json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 5 column 5 #459

Open nitay100 opened 2 months ago

nitay100 commented 2 months ago

Before submitting a bug report...

Title

Describe the bug

the bug happend because the accounts.json file have a , after the quotes on 4 line can be fixed by removing it

Copy and paste your error

C:\Users\nitay\Downloads\MS-Rewards-Farmer-master>python main.py Traceback (most recent call last): File "C:\Users\nitay\Downloads\MS-Rewards-Farmer-master\main.py", line 316, in main() File "C:\Users\nitay\Downloads\MS-Rewards-Farmer-master\main.py", line 33, in main loadedAccounts = setupAccounts() ^^^^^^^^^^^^^^^ File "C:\Users\nitay\Downloads\MS-Rewards-Farmer-master\main.py", line 179, in setupAccounts loadedAccounts = json.loads(accountPath.read_text(encoding="utf-8")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nitay\AppData\Local\Programs\Python\Python311\Lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nitay\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nitay\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 5 column 5 (char 90)

Screenshots

idk

Value of dashboard variable

idk

vialonitasuhardiman commented 1 month ago

format it like this : [ { "username": "email", "password": "password" } ]