Troubleshooting guide
yt-dlp not working? Fix common yt-dlp errors
Most yt-dlp failures are not mysterious. They usually come down to one of a few buckets: outdated yt-dlp, missing ffmpeg, bad format assumptions, or a site requiring cookies or sign-in state.
Always try this first
yt-dlp -U
yt-dlp --versionA surprising amount of yt-dlp troubleshooting starts and ends with updating to the latest release. If you installed it with pip, update with python3 -m pip install -U yt-dlp instead (and with brew or your package manager the same way). Still failing? Rerun the command with -v and match the first ERROR: line to the list below.
This will break again. Get an email next time.
2–4 emails a month, only when something breaks or gets fixed. Unsubscribe anytime.
HTTP Error 403: Forbidden
Update yt-dlp first. If that does not fix it, clear the cache and try cookies. Old extractor logic breaks often.
Sign in to confirm you're not a bot
YouTube's bot check. Pass cookies from a signed-in browser and avoid datacenter IPs and request bursts.
No supported JavaScript runtime could be found
Current yt-dlp needs a JavaScript runtime (Deno, Node or Bun) to solve YouTube's challenges. Without one you get this warning and missing formats. Install one, or add it to your Docker image.
Full JavaScript runtime fix guide →
Works on my computer, fails on a server or in CI
Same command, same version, but 403s or bot checks on AWS, a VPS or a CI runner. YouTube treats datacenter IPs much more strictly than home connections, so this is an IP problem, not a flag problem.
Server and cloud IP fix guide →
nsig extraction failed / throttled downloads
YouTube changed its player JavaScript. Update yt-dlp — the fix always ships as a new release.
Read timed out / The read operation timed out
Two different causes. If the download starts and then stalls in chunks before it dies, YouTube is throttling the media stream. If the timeout happens while yt-dlp is still fetching the page (Unable to download webpage: The read operation timed out), the connection to the site is slow or flaky — a VPN, proxy, ISP route or a busy server. Update first, then give it longer and let retries resume instead of restarting:
yt-dlp --socket-timeout 30 --retries infinite --fragment-retries infinite "<URL>"If it only times out from a server but runs fine at home, that's datacenter-IP throttling, not your network — see the server guide.
Stalling and "Read timed out" downloads →
Connection reset by peer / HTTPS connection failed mid-download
The download runs for a while, then drops with Connection reset by peer, ('Connection broken: ...', ...), or Unable to download video data: <url> ... HTTPS connection failed. The connection to googlevideo was cut mid-stream rather than slowed. Let yt-dlp resume the partial file instead of restarting, and retry forever:
yt-dlp --socket-timeout 30 --retries infinite --fragment-retries infinite --continue "<URL>"If the resets only happen from a server or cloud box but not at home, it's datacenter-IP throttling, not a bad connection — see the server guide.
Downloads that drop or time out mid-stream →
Requested format is not available
Run `yt-dlp -F URL` and pick a format that actually exists now. Do not assume old format IDs still work.
ffmpeg not found
Install ffmpeg and verify it is available on PATH. yt-dlp relies on it for merges and audio conversion.
ERROR: Postprocessing: Conversion failed!
ffmpeg ran and failed, usually because it is missing, very old, or was asked for a container the streams don't fit. Update ffmpeg and rerun with -v to see the exact ffmpeg command and its error.
SSL: CERTIFICATE_VERIFY_FAILED
Read the reason after it: a proxy or antivirus re-signing traffic, an outdated certificate store, or an expired or self-signed certificate each have their own fix. --no-check-certificates is the last resort, not the first fix.
Sign in to confirm your age / cookies required
Use cookies from a signed-in browser session when the platform requires auth or age verification.
Could not copy Chrome cookie database
--cookies-from-browser chrome fails with Could not copy Chrome cookie database (the error points at yt-dlp issue #7271) when Chrome is open: it locks the cookie file while running, and recent versions encrypt it with a key yt-dlp cannot always read. Close Chrome completely first, including any background process. If it still fails, read the cookies from --cookies-from-browser firefox instead, or export a cookies.txt file from a logged-in session and pass it with --cookies cookies.txt.
ExtractorError / unsupported site changes
Update yt-dlp first. A lot of breakages are upstream site changes that get patched in newer releases.
How to troubleshoot faster
Do not randomly rotate flags. Identify which bucket the failure belongs to first: update problem, auth problem, ffmpeg problem, or format problem. That alone removes a lot of wasted trial and error.
If it keeps breaking
Tired of fixing this every time a site changes?
Paste a link to see what a managed import API returns — the one that stays current so your workflow doesn't break.
Building this into an app? See the API your backend calls instead
Frequently asked questions
Why did yt-dlp suddenly stop working?
Almost always because the site changed something and your yt-dlp is older than the fix. Update to the latest release first. If the newest release still fails, check the yt-dlp issue tracker for your error; a fix often ships within days.
Why am I getting an error on yt-dlp when the same video plays in my browser?
Your browser is signed in, runs the site's JavaScript and uses your home IP. yt-dlp may be missing one of those: cookies, a JavaScript runtime, or an IP the site trusts. The first ERROR: line in the -v output tells you which.
Why does yt-dlp work on my laptop but not on my server?
Cloud and datacenter IPs get far stricter treatment from YouTube than home connections, so the same command hits 403s or the bot check on AWS, a VPS or CI. Cookies and a PO token provider help; the server guide covers the free fixes and their limits.
Related guides
- Update yt-dlp
- Use cookies with yt-dlp
- Fix ffmpeg not found
- Understand format selection
- Install yt-dlp
- Fix HTTP 403 / forcing SABR streaming
- Fix "No supported JavaScript runtime" in Docker
- yt-dlp works locally but not on a server
- Fix fragment 500 errors and empty files
- YouTube downloads that stall and time out
- Fix "ERROR: Unsupported URL"
- Fix Vimeo "The web client only works when logged-in"
- Fix SSL errors (CERTIFICATE_VERIFY_FAILED)