-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
[BUG] - Error encountered getting comments: TikTokApi.exceptions.EmptyResponseException: None -> TikTok returned an empty response #1097
Comments
Looks like api is broken, i tried manualy do request to get user info https://www.tiktok.com/api/user/detail/?uniqueId=therock&msToken=token and its really return empty response |
I am getting this same exception on Mac Vetura 13.3 with the basic "trending videos" example. `from TikTokApi import TikTokApi ms_token = os.environ.get("ms_token", None) # get your own ms_token from your cookies on tiktok.com async def trending_videos(): if name == "main": Traceback:
|
Any updates on this? Running the basic example and I was able to get a response once but after that I get "TikTok returned an empty response" |
I have the same issue... |
I've tried this any it work: in the
It's a bit annoying but preventing the Empty Response error |
Nope, for comments still doesn't work |
This can also be fixed by setting the
This also seems to bypass the need to have a ms_token |
@VitoLin This worked for me for a few runs, then it went back to the "EmptyResponseException: None -> TikTok returned an empty response" error. Any idea why it only works periodically? Is there a rate limit or something? Thanks |
Has anyone tried rotating the ms_token or proxy we go through? It might be bot/scraping-detection on TikTok's part. |
What do you mean by "rotating" the ms_token? And how would one do that? Thanks! @jpratt9 |
This only seems to work for me with api.trending, not api.user |
I'm still getting EmptyResponse no matter which one I try, even with headless=False |
Finally, I got a response. Maybe someone can help me out with |
Describe the bug
Tiktok throwing a fit and not giving me my comments.
The buggy code
Please add any relevant code that is giving you unexpected results.
Preferably the smallest amount of code to reproduce the issue.
Expected behavior
Comments printed out
Error Trace (if any)
Put the error trace below if there's any error thrown.
Desktop (please complete the following information):
Additional context
Its an older bug sir, but it checks out.
The text was updated successfully, but these errors were encountered: