question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - KeyError: 'hasMore'

See original GitHub issue

trying 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:closed
  • Created 3 years ago
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
vdemaycommented, Nov 16, 2020

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.

1reaction
zkquincommented, Nov 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found