[BUG] - Status Code 10204
See original GitHub issueDescribe the bug
When running api.getTikTokById
on a silent video’s ID, it returns {'statusCode': 10204}
when it should return a TikTok object.
The buggy code
from TikTokApi import TikTokApi
api = TikTokApi()
tiktoks = api.byUsername('penguins')
for tiktok in tiktoks:
if (tiktok['id'] == '6791925545199258886'):
print(tiktok)
newTik = api.getTikTokById('6791925545199258886')
print (newTik)
Expected behavior
The code above shows what happens when the ID is found from api.byUsername
and how the result is different when calling api.getTikTokById
for the same ID.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- Browser Default is Chrome
- Version 3.1.9
Additional context
Silent videos have always been a problem on desktop TikTok, direct links don’t work but clicking on the video works.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
wwdc21-10204 | Apple Developer Forums
Example for google.com as an item name, I have two keychain items with the name "Foo", one in KeychainA another in keychainB. When...
Read more >Oracle Bug Status Codes
This document describes bug status codes and their usage. Status. Usage. 10 - New, not ready for development. Use to file a bug...
Read more >PHP :: Bug #10204 :: fgets causes memory leaks
I noticed this last night in the socket code: it uses a simple read-buffering scheme where the read buffer will only grow, so...
Read more >#10204 (image size not set in load event when loaded from another ...
observed on chrome 15.0.865.0. ok with IE 8, Opera 11.50, Safari 5.1 and FF 6.0. when an image is loaded from a click...
Read more >[MCL-10204] game crash - Jira
Type: Bug ... Confirmation Status: Unconfirmed ... A detailed walkthrough of the error, its code path and all known details is as follows:...
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 FreeTop 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
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.96. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
I think I might have an update on this, someone reached out to me on Discord for my implementation of the API because videos were getting blocked. I found the 10204 status code, and searched it on google to find this issue.
It looks to be a region issue in my case, perhaps the sound not being available in the request region.
Directly curling the URL from https://www.tiktok.com/@jjay.mal/video/6950355238276631814 on my VPS in germany returns that 10204, tried again on my VPS with https://www.tiktok.com/embed/v2/6950355238276631814?lang=en-US 10204.
Both return valid video data from my home in Canada when locally requested.
Credit goes to the user oof ouch my bones#3778 for figuring this out if it does help in any way.