Skip to content
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

requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #199

Open
2 tasks done
ProudNamed opened this issue Sep 5, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working stale

Comments

@ProudNamed
Copy link

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

c9bc044

Describe the bug

the bug just randomly happen during searches and most of the time the searches aren't completed

Copy and paste your error

2024-09-05 18:55:19,910 [DEBUG] in exit exc_type=<class 'requests.exceptions.JSONDecodeError'> exc_value=Expecting value: line 1 column 1 (char 0) traceback=<traceback object at 0x000001B70C3DAF80>
2024-09-05 18:55:25,781 [ERROR]
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\requests\models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1520.0_x64__qbz5n2kfra8p0\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1520.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.12_3.12.1520.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)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\main.py", line 40, in main
earned_points = executeBot(currentAccount, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\main.py", line 249, in executeBot
searches.bingSearches()
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\src\searches.py", line 136, in bingSearches
self.bingSearch()
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\src\searches.py", line 205, in bingSearch
pointsAfter = self.browser.utils.getAccountPoints()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\src\utils.py", line 176, in getAccountPoints
return self.getBingInfo()["balance"]
^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\OneDrive - A\Desktop\FARMER pro 1.0.1\src\utils.py", line 148, in getBingInfo
return response.json()["userInfo"]
^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\requests\models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Screenshots

None

Value of dashboard variable

None

@ProudNamed ProudNamed added the bug Something isn't working label Sep 5, 2024
Copy link

github-actions bot commented Jan 4, 2025

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

@github-actions github-actions bot added the stale label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant