[BUG] - KeyError: 'hasMore'
See original GitHub issuetrying to download a video using code
https://github.com/davidteather/TikTok-Api/issues/311#issuecomment-721164493
just want to download video (get bytes)
File "C:\Users\USER\AppData\Local\Programs\Python\Python38-32\lib\site-packages\TikTokApi\tiktok.py", line 406, in userPosts
if not res["hasMore"] and not first:
KeyError: 'hasMore'
- OS: Windows 10
- TikTokApi Version 3.7.9
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (6 by maintainers)
Top Results From Across the Web
Python KeyError When Trying to Get All Companies
Solved: I am trying to use Python to get all of my Company contacts. However I keep getting a KeyError for the "has-more"...
Read more >I'm getting Key error in python - Stack Overflow
A KeyError generally means the key doesn't exist. So, are you sure the path key exists? From the official python docs: exception KeyError....
Read more >Indexing and selecting data — pandas 1.5.2 documentation
Every label asked for must be in the index, or a KeyError will be raised. When slicing, both the start bound AND the...
Read more >Upgrade to 5.2 or above on Oracle fails with "Table 'X' has ...
Bug CONFSERVER-3613 - Problem installing on Oracle schema when other schemas in ... with "Table '<Table Name>' has more than one primary key"...
Read more >Tag scan may fail after upgrade to v2.6.0 with the KeyError ... - N2WS
Tag scan may fail after upgrade to v2.6.0 with the KeyError config_args error, when a resource is tagged with the no-backup tag value....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try to use a
custom_verifyFp
This error appears when response from Tiktok is blocked: json returned by tiktok is not the expected response but a kind of json error message.I take that all back. Now getUser is seemingly working fine.
Now I’m getting a
requests.exceptions.SSLError: HTTPSConnectionPool(host='tiktok.com', port=443): Max retries exceeded with url: /@imgalina?lang=en (Caused by SSLError(SSLCertVerificationError("hostname 'tiktok.com' doesn't match either of '*.snssdk.com', 'snssdk.com'")))
for byUsername.Feeding the s_v_web_id to custom_verifyFp will then give “Invalid Response” instead.