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

JSONDecodeError #44

Closed
Stonemercy opened this issue Nov 1, 2023 · 0 comments
Closed

JSONDecodeError #44

Stonemercy opened this issue Nov 1, 2023 · 0 comments

Comments

@Stonemercy
Copy link

I'm getting the same error as #37 and #36

package is up to date as it was installed post-last release

Unhandled exception in internal background task 'upload_check'.
Traceback (most recent call last):
File "C:\Users\lee_p\AppData\Roaming\Python\Python311\site-packages\disnake\ext\tasks_init_.py", line 162, in loop
await self.coro(*args, **kwargs)
File "C:\Users\lee_p\Documents\Programming\The Handler\cogs\youtube.py", line 27, in upload_check
for latest_video in videos:
File "C:\Users\lee_p\AppData\Roaming\Python\Python311\site-packages\scrapetube\scrapetube.py", line 75, in get_channel
for video in videos:
File "C:\Users\lee_p\AppData\Roaming\Python\Python311\site-packages\scrapetube\scrapetube.py", line 199, in get_videos
client = json.loads(
^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\json_init
.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\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)

it was initially working but suddenly stopped

@Stonemercy Stonemercy closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2023
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

1 participant