You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting this error when running getTiktoksByHashtag
Converting response to JSON failed response is below (probably empty)
Traceback (most recent call last):
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 34, in getData
return r.json()
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\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 "getTiktoksByHashtag.py", line 7, in <module>
tiktoks = api.byHashtag('zendeechallenge', count=count)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 190, in byHashtag
res = self.getData(api_url, b.signature, b.userAgent)
File "C:\Users\Asus\AppData\Local\Programs\Python\Python37\lib\site-packages\TikTokApi\tiktok.py", line 38, in getData
raise Exception('Invalid Response')
Exception: Invalid Response
The text was updated successfully, but these errors were encountered:
This is most likely being caused by a rate limiting on TikTok's server. Issue #88 had a similar problem, not the same but it was similar with the response a server would send.
Getting this error when running getTiktoksByHashtag
The text was updated successfully, but these errors were encountered: