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

Any function returns permanently empty fields #1128

Open
nedoai opened this issue Mar 18, 2024 · 7 comments
Open

Any function returns permanently empty fields #1128

nedoai opened this issue Mar 18, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@nedoai
Copy link

nedoai commented Mar 18, 2024

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.

@nedoai nedoai added the bug Something isn't working label Mar 18, 2024
@annashamsili
Copy link

I also have this issue, but I get "TikTok returned empty string"

@tigra323
Copy link

I also get an empty response. But status code 0 is the same as status code 200, which means OK

@nedoai
Copy link
Author

nedoai commented Mar 20, 2024

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

@jdeplato
Copy link

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?

@HTShin
Copy link

HTShin commented Mar 23, 2024

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

@Gereks123
Copy link

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

@tigra323
Copy link

tigra323 commented May 21, 2024

Solution here: #1090 (comment)
Addition: here links for browsers: linux win32 win64 from here
P.s. just add argument "executable_path" to create_session with path to chrome

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

6 participants