Skip to content

'file_format_check_failed' on Tiktok upload #814

@vrisalab

Description

@vrisalab

📜 Description

I've successfully set up my tiktok account on postiz, using a sandbox app. I am aware those apps cannot post videos on public accounts, so I've settled for posting drafts. Sadly I encounter the following error when attempting to draft an mp4 h264 video:

postiz           | [0] 0|workers  | [Error] posting on tiktok titok-error-upload {"data":{"fail_reason":"file_format_check_failed","status":"FAILED"},"error":{"code":"ok","message":"","log_id":"20250612033551A7D9C403C69ED91B3FEF"}} <Buffer 7b 22 64 61 74 61 22 3a 7b 22 66 61 69 6c 5f 72 65 61 73 6f 6e 22 3a 22 66 69 6c 65 5f 66 6f 72 6d 61 74 5f 63 68 65 63 6b 5f 66 61 69 6c 65 64 22 2c ... 100 more bytes> BadBody {

This is ffprobe for that video

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'e723bf12bb1072255d29ceab76fb9af33.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2025-06-08T21:43:22.000000Z
  Duration: 00:00:14.75, start: 0.000000, bitrate: 8266 kb/s
  Stream #0:0[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
      Metadata:
        creation_time   : 2025-06-08T21:43:24.000000Z
        handler_name    : #Mainconcept MP4 Sound Media Handler
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1080x1920, 7915 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
      Metadata:
        creation_time   : 2025-06-08T21:43:25.000000Z
        handler_name    : ?Mainconcept Video Media Handler
        vendor_id       : [0][0][0][0]
        encoder         : AVC Coding

I also tested it with a private account, and the same error occurs.

👟 Reproduction steps

  1. Connect a tiktok account, private or not
  2. Attempt to post a draft
  3. The post fails with 'file_format_check_failed'.

👍 Expected behavior

The post should appear in the user's drafts

👎 Actual Behavior with Screenshots

Image

💻 Operating system

Linux

🤖 Node Version

The one in the latest docker file

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions