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

EmptyResponseException: Empty response from Tiktok #937

Closed
popkarov opened this issue Aug 25, 2022 · 4 comments
Closed

EmptyResponseException: Empty response from Tiktok #937

popkarov opened this issue Aug 25, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@popkarov
Copy link

User.videos() refuses to give a list of videos, no matter which user is entered, no matter if the verify_token is refreshed.

with TikTokApi(custom_verify_fp=verify_token) as api:
    user = api.user(username=user_name)
    for item in user.videos(count=2000):
         print(str(item) + "\n")

Expected behavior

Printing each video item

Error Trace (if any)

Put the error trace below if there's any error thrown.

Traceback (most recent call last):
  File "gettiktok.py", line 23, in <module>
    for item in user.videos(count=2000):
  File "/home/popkarov/.local/lib/python3.8/site-packages/TikTokApi/api/user.py", line 175, in videos
    res = User.parent.get_data(path, send_tt_params=True, **kwargs)
  File "/home/popkarov/.local/lib/python3.8/site-packages/TikTokApi/tiktok.py", line 378, in get_data
    raise EmptyResponseException(0, None,
TikTokApi.exceptions.EmptyResponseException: 0 -> Empty response from Tiktok to https://m.tiktok.com/api/post/item_list/...

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • TikTokApi Version: 5.2.2
@popkarov popkarov added the bug Something isn't working label Aug 25, 2022
@nikolkhb
Copy link

bump

@liuyan345
Copy link

+1

1 similar comment
@lihuelworks
Copy link

+1

@davidteather
Copy link
Owner

Should be fixed in V6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants