Closed nedoai closed 3 weeks ago
I also have this issue, but I get "TikTok returned empty string"
I also get an empty response. But status code 0 is the same as status code 200, which means OK
I also get an empty response. But status code 0 is the same as status code 200, which means OK
Oh, thanks. But the question with empty answers remains open
Using the comment example and not altering it, I'm getting the following error:
File "C:\Python312\Lib\site-packages\TikTokApi\tiktok.py", line 430, in make_request raise EmptyResponseException(result, "TikTok returned an empty response") TikTokApi.exceptions.EmptyResponseException: None -> TikTok returned an empty response
Any updates / assistance would be appreciated - could TikTok have updated/changed their API endpoint?
I also get this issue and try change another API endpoint, but not working.
I guess Tiktok API update header to get data
Ref Tiktok API endpoint: https://gist.github.com/nhandt64/f691579d31898ee023d921dd21866c54
When using the example of fetching a user: https://github.com/davidteather/TikTok-Api/blob/main/examples/user_example.py
I get the following error: Got an unexpected status code: {'userInfo': {'user': {}, 'stats': {}, 'shareMeta': {}}} data["userInfo"]["user"]["id"],
KeyError: 'id'
Seems like the headers are updated/API endpoints have changed
The basic function that is provided in the documentation returns status_code = 0 and that's it. All other functions return an empty dictionary in the same way.