Open pam-param-pam opened 11 months ago
Yep can confirm I'm getting the same error on Debian 12 x86_64 when executing with Headless=False
, otherwise I get the following when Headless=True
(default):
2023-09-23 13:58:09,787 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'userInfo': {'user': {}, 'stats': {}, 'shareMeta': {}}}
Traceback (most recent call last):
File "/home/mezza/Developer/Testing/tiktokapi/test.py", line 18, in <module>
loop.run_until_complete(user_example())
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/mezza/Developer/Testing/tiktokapi/test.py", line 8, in user_example
user_data = await user.info()
^^^^^^^^^^^^^^^^^
File "/home/mezza/Developer/Testing/tiktokapi/venv/lib/python3.11/site-packages/TikTokApi/api/user.py", line 87, in info
self.__extract_from_data()
File "/home/mezza/Developer/Testing/tiktokapi/venv/lib/python3.11/site-packages/TikTokApi/api/user.py", line 204, in __extract_from_data
data["userInfo"]["user"]["id"],
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'id'
I also confim having the same issue, and i also use a Debian machine (Debian 11 x86_64). Maybe TikTok changed something and broke up the whole API.
I also encountered same issue, at MBP M1 Pro, macOS Ventura 13.0.1.
I also encountered same issue:
2023-12-04 15:27:58,904 - TikTokApi.tiktok - ERROR - Got an unexpected status code: {'userInfo': {'user': {}, 'stats': {}, 'shareMeta': {}}}
Traceback (most recent call last):
File "C:\dev\gettiktok.py", line 23, in
KeyError: 'id'
same error here
EmptyResponseException is not able to be raised properly when fetching user data
EmptyResponseException is tried to be raised ending with typeError missing required args for the exception
Two diffrent rracebacks are randomly returned(depending on the mood of the program ig) Traceback 1
Traceback 2
Windowns 10 TikTokApi==6.1.1