[tiktok] Unexpected response from webpage request (worked Aug 31, broken Sep 1)
Author: BlindboyCCreated Sep 1, 2026Updated Sep 16, 2026
Labelssite-bugsite:tiktokimpersonation
Checklist
- I've read the NO AI / NO LLM POLICY and understand I may be blocked from the repository if it is violated
- I'm reporting that yt-dlp is broken on a supported site
- I've verified that I have updated yt-dlp to nightly or master (update instructions)
- I've checked that all provided URLs are playable in a browser with the same IP and same login details
- I've checked that all URLs and arguments with special characters are properly quoted or escaped
- I've searched known issues, the FAQ, and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I've read about sharing account credentials and I'm willing to share it if required
Region
Brasil
Provide a description that is worded well enough to be understood
On Monday, Aug 31, the script worked perfectly using this same yt-dlp build. I made no changes to it, and today every video I try to download hits this error. I've already updated the cookies file and tested on different machines, with the same result. The error also happens even without passing --cookies at all, which rules out a cookie/session issue.
This looks related to #17403 (closed via #17452), but I'm seeing the identical error and traceback on a build that should already include that fix, which suggests this may be a new regression rather than the same issue resurfacing.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.tiktok.com/@waffleskkw/video/7678161526284602644']
[debug] Encodings: locale utf-8, fs utf-8, pref utf-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version [email protected] from yt-dlp/yt-dlp-nightly-builds [bbc809a11] (pip)
[debug] Python 3.13.15 (CPython x86_64 64bit) - Linux-6.6.122+-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.23.0, brotli-1.2.0, certifi-2026.07.22, curl_cffi-0.16.2, mutagen-1.48.1, requests-2.32.4, secretstorage-3.5.0, sqlite3-3.37.2, urllib3-2.5.0, websockets-15.0.1, yt_dlp_ejs-0.8.0
[debug] JS runtimes: deno-2.9.6
[debug] Proxy map: {'colab_language_server': '/usr/colab/bin/language_service'}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Plugin directories: none
[debug] Loaded 1745 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: [email protected] from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp-nightly-builds)
[TikTok] Extracting URL: https://www.tiktok.com/@waffleskkw/video/7678161526284602644
[TikTok] 7678161526284602644: Downloading webpage
[debug] [TikTok] Webpage size: 537 bytes
[debug] [TikTok] Impersonation target: chrome-150:macos-26
ERROR: [TikTok] 7678161526284602644: Unexpected response from webpage request; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
File "/usr/local/lib/python3.13/dist-packages/yt_dlp/extractor/common.py", line 764, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.13/dist-packages/yt_dlp/extractor/tiktok.py", line 1005, in _real_extract
video_data, status = self._extract_web_data_and_status(url, video_id)
File "/usr/local/lib/python3.13/dist-packages/yt_dlp/extractor/tiktok.py", line 305, in _extract_web_data_and_status
cookie_names = self._solve_challenge_and_set_cookies(webpage)
File "/usr/local/lib/python3.13/dist-packages/yt_dlp/extractor/tiktok.py", line 231, in _solve_challenge_and_set_cookies
raise ExtractorError('Unexpected response from webpage request')
Source: yt-dlp/yt-dlp