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) #76

Open
4DeepThought2 opened this issue Oct 16, 2023 · 1 comment

Comments

@4DeepThought2
Copy link

4DeepThought2 commented Oct 16, 2023

Describe the bug
Attempting to download a set for a free user.

To Reproduce
Start downloads of a certain user.

Expected behavior
Download the users content.

Issue:
I have not attempted to look at the code yet to edit it to get the json payload to see what its doing, but:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Z:\OnlySnap\OnlySnap.py", line 816, in <module>
    SELECTED_MODELS = select_sub()
                      ^^^^^^^^^^^^
  File "Z:\OnlySnap\OnlySnap.py", line 308, in select_sub
    subscribes_count = user_me()["subscribesCount"]
                       ^^^^^^^^^
  File "Z:\OnlySnap\OnlySnap.py", line 225, in user_me
    me = api_request("/users/me").json()
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "Z:\OnlySnap\OnlySnap.py", line 162, in api_request
    num_posts = len(response.json()) if isinstance(response.json(), list) else 0
                                                   ^^^^^^^^^^^^^^^
  File "Z:\OnlySnap\venv\Lib\site-packages\requests\models.py", line 975, in json
    raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Desktop (please complete the following information):

  • OS: Windows 11 - Python3 virtual environment
  • Browser [e.g. chrome, safari]: N/A
  • Version [e.g. 22] latest
@taux1c
Copy link
Owner

taux1c commented Nov 1, 2023

Sorry man I don't do anything at all with this anymore. Way too much work for nothing. The api calls are too outdated to be able to give you a fix. Fixing this would require a total overhaul of most calls.

@taux1c taux1c closed this as completed Nov 1, 2023
@taux1c taux1c reopened this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants