[GH-ISSUE #1505] Unable to download Tik-Tok video #19591

Open
opened 2026-06-10 17:21:22 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @kartikloops on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1505

bug description

Hi when ever I am posting the TikTok url to get the http link for download I am getting : {"status":"error","error":{"code":"error.api.fetch.fail","context":{"service":"tiktok"}}}%

reproduction steps

curl -X POST http://localhost:9000/ \
-H "Accept: application/json"
-H "Content-Type: application/json"
-d '{"url": "https://www.tiktok.com/@liiiilmooon/video/7574552571298270472"}'

screenshots

No response


platform information

macOS

additional context

No response

Originally created by @kartikloops on GitHub (Jan 21, 2026). Original GitHub issue: https://github.com/imputnet/cobalt/issues/1505 ### bug description Hi when ever I am posting the TikTok url to get the http link for download I am getting : {"status":"error","error":{"code":"error.api.fetch.fail","context":{"service":"tiktok"}}}% ### reproduction steps curl -X POST http://localhost:9000/ \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{"url": "https://www.tiktok.com/@liiiilmooon/video/7574552571298270472"}' ### screenshots _No response_ ### links ```shell ``` ### platform information macOS ### additional context _No response_
GiteaMirror added the bug label 2026-06-10 17:21:22 -05:00
Author
Owner

@loading-SQK9K commented on GitHub (Jan 31, 2026):

Im having the same problem, Ive used the website, the app, restarted my phone, and then tried both again. This is on a Motorola 5G Ace using chrome Image

<!-- gh-comment-id:3827362595 --> @loading-SQK9K commented on GitHub (Jan 31, 2026): Im having the same problem, Ive used the website, the app, restarted my phone, and then tried both again. This is on a Motorola 5G Ace using chrome <img width="1080" height="2400" alt="Image" src="https://github.com/user-attachments/assets/6a757003-b39e-4fbe-b29c-a49985da6cff" />
Author
Owner

@paul-ssupp commented on GitHub (Mar 16, 2026):

same issue

<!-- gh-comment-id:4070908589 --> @paul-ssupp commented on GitHub (Mar 16, 2026): same issue
Author
Owner

@paul-ssupp commented on GitHub (Mar 16, 2026):

...but, works for other platforms

 error {
0|tiktok-backend  |   status: 'error',
0|tiktok-backend  |   error: { code: 'error.api.fetch.fail', context: { service: 'tiktok' } }
0|tiktok-backend  | }
0|tiktok-backend  | axiosResponseData {
0|tiktok-backend  |   status: 'redirect',
0|tiktok-backend  |   url: 'https://instagram.fhmj1-1.fna.fbcdn.net/o1/v/t16/f2/m69/AQPYghWGGkR4LI6wFHD8vao-lFFwzP2GqcwybdNxG1FkjsbFXK6nYmdmu-Fd9tqhYlOZNT1HlIJKPWF9lOmAI4oU.mp4?strext=1&_nc_cat=101&_nc_oc=AdnJfiH2V6FtMv-hQBEBCYKShFlwDnWFCa_JlX-miIrEG-5Hx1oHXeJ-Yl6j0uOQA8g&_nc_sid=5e9851&_nc_ht=instagram.fhmj1-1.fna.fbcdn.net&_nc_ohc=cAwAxwk3ItAQ7kNvwGdpxOA&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgwNDUwNzI1NTQ1NDM1MTAsImFzc2V0X2FnZV9kYXlzIjowLCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MTIsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=yAf5XXvZuI0b8_FHZW6hnQ&_nc_ss=8&_nc_zt=28&vs=5ea1d58e64307512&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HTFZRMkNhbnNFQmhDUG9FQUFlV0VsbjlsY003YnNwVEFRQUYVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0ZENEUwMDZCODA4MjM5NTJGRjc4NzNDOUI5RjQ0MEI2X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaspvq4u_mNQBUCKAJDMywXQClEGJN0vGoYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&oh=00_AfwHttYMsRGPCb0mHCdZjesba2MYM9lUWSGWSZ22H9ISng&oe=69BE3EE3',
0|tiktok-backend  |   filename: 'instagram_DV9ZZoOD82M.mp4'
0|tiktok-backend  | }

<!-- gh-comment-id:4070914032 --> @paul-ssupp commented on GitHub (Mar 16, 2026): ...but, works for other platforms ``` error { 0|tiktok-backend | status: 'error', 0|tiktok-backend | error: { code: 'error.api.fetch.fail', context: { service: 'tiktok' } } 0|tiktok-backend | } 0|tiktok-backend | axiosResponseData { 0|tiktok-backend | status: 'redirect', 0|tiktok-backend | url: 'https://instagram.fhmj1-1.fna.fbcdn.net/o1/v/t16/f2/m69/AQPYghWGGkR4LI6wFHD8vao-lFFwzP2GqcwybdNxG1FkjsbFXK6nYmdmu-Fd9tqhYlOZNT1HlIJKPWF9lOmAI4oU.mp4?strext=1&_nc_cat=101&_nc_oc=AdnJfiH2V6FtMv-hQBEBCYKShFlwDnWFCa_JlX-miIrEG-5Hx1oHXeJ-Yl6j0uOQA8g&_nc_sid=5e9851&_nc_ht=instagram.fhmj1-1.fna.fbcdn.net&_nc_ohc=cAwAxwk3ItAQ7kNvwGdpxOA&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTgwNDUwNzI1NTQ1NDM1MTAsImFzc2V0X2FnZV9kYXlzIjowLCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6MTIsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=yAf5XXvZuI0b8_FHZW6hnQ&_nc_ss=8&_nc_zt=28&vs=5ea1d58e64307512&_nc_vs=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HTFZRMkNhbnNFQmhDUG9FQUFlV0VsbjlsY003YnNwVEFRQUYVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyL0ZENEUwMDZCODA4MjM5NTJGRjc4NzNDOUI5RjQ0MEI2X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwKIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRUAACaspvq4u_mNQBUCKAJDMywXQClEGJN0vGoYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&oh=00_AfwHttYMsRGPCb0mHCdZjesba2MYM9lUWSGWSZ22H9ISng&oe=69BE3EE3', 0|tiktok-backend | filename: 'instagram_DV9ZZoOD82M.mp4' 0|tiktok-backend | } ```
Author
Owner

@paul-ssupp commented on GitHub (Mar 16, 2026):

Getting back to you @kartikloops @loading-SQK9K

I fixed this with the following

  1. pulled the repo
  2. copied the changes from the https://github.com/imputnet/cobalt/pull/1514
  3. rebuild docker image
  4. patched docker compose to use my own image

So, If tiktok fails to download next time, just update user agent for the tiktok processor

<!-- gh-comment-id:4071057694 --> @paul-ssupp commented on GitHub (Mar 16, 2026): Getting back to you @kartikloops @loading-SQK9K I fixed this with the following 1. pulled the repo 2. copied the changes from the https://github.com/imputnet/cobalt/pull/1514 3. rebuild docker image 4. patched docker compose to use my own image So, If tiktok fails to download next time, just update user agent for the tiktok processor
Author
Owner

@woairenzhi commented on GitHub (May 14, 2026):

If TikTok downloads are failing, you can try tkai.asia as an alternative - it extracts live stream sources for free, no watermark. Might help with your use case.

<!-- gh-comment-id:4447558695 --> @woairenzhi commented on GitHub (May 14, 2026): If TikTok downloads are failing, you can try tkai.asia as an alternative - it extracts live stream sources for free, no watermark. Might help with your use case.
Sign in to join this conversation.