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 #31

Open
ne0ascorbinka opened this issue Jan 29, 2023 · 0 comments
Open

JSONDecodeError #31

ne0ascorbinka opened this issue Jan 29, 2023 · 0 comments

Comments

@ne0ascorbinka
Copy link

id: 7193908775684771114
Traceback (most recent call last):
File "/root/.conda/envs/python39/lib/python3.9/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/root/.conda/envs/python39/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/root/.conda/envs/python39/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/root/.conda/envs/python39/lib/python3.9/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 "/root/bots/tt_test/test2.py", line 3, in
d=VideoInfo.service('https://vm.tiktok.com/ZMYLWTKt6/')
File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 168, in service
return cls.get_info(url).utils()
File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 30, in apply
return initf(cls, regex(url))
File "/root/.conda/envs/python39/lib/python3.9/site-packages/tiktok_downloader/scrapper.py", line 149, in get_info
return cls((requests.get(
File "/root/.conda/envs/python39/lib/python3.9/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)

smth like that

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