youtube-dl: Unable to download JSON metadata error on yt
Checklist
- I’m reporting a broken site support issue
- I’ve verified that I’m running youtube-dl version 2021.02.22 – youtube-dl is up-to-date (2021.02.22)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar bug reports including closed ones
- I’ve read bugs section in FAQ
Verbose log
[debug] System config: []
[debug] User config: ['--download-archive', 'archive.txt', '-i', '-w', '-c', '--no-mtime', '--restrict-filenames', '--prefer-ffmpeg', '--min-sleep-interval', '2', '--max-sleep-interval', '20', '-o', '%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['--download-archive', 'foodwishes.txt', '--verbose', '-i', '-q', '--no-warnings', '--restrict-filenames', '--add-metadata', '--min-sleep-interval', '1.5', '--max-sleep-interval', '7', '-o', '%(title)s.%(ext)s', 'https://www.youtube.com/user/foodwishes']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.02.22
[debug] Python version 3.8.3 (CPython) - Linux-4.18.0-240.10.1.el8_3.x86_64-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4
[debug] Proxy map: {}
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 632, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2275, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 632, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2275, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/lib64/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib64/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib64/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib64/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
Description
Simple download of a fav playlist from yt. It has been working for years and after updating to 02.22, it seems to have broken this morning.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 17 (4 by maintainers)
Commits related to this issue
- Add option `--extractor-retries` to retry on known extractor errors * Currently only used by youtube Fixes https://github.com/ytdl-org/youtube-dl/issues/28194 Possibly also fixes: https://github.com... — committed to yt-dlp/yt-dlp by pukkandan 3 years ago
- [bot] AutoMerging: merge all upstream's changes: * https://github.com/ytdl-org/youtube-dl: release 2021.03.03 [ChangeLog] Actualize [ci skip] [youtube:tab] Switch continuation to browse API (cl... — committed to hellopony/youtube-dl by github-actions[bot] 3 years ago
- [youtube:tab] Switch continuation to browse API (closes #28289, closes #28327) Until further investigation. — committed to leshasmlesha/youtube-dl by dstftw 3 years ago
- [youtube:tab] Switch continuation to browse API (closes #28289, closes #28327) Until further investigation. — committed to leshasmlesha/youtube-dl by dstftw 3 years ago
- [youtube:tab] Switch continuation to browse API (closes #28289, closes #28327) Until further investigation. — committed to dirkf/youtube-dl by dstftw 3 years ago
- [youtube:tab] Switch continuation to browse API (closes #28289, closes #28327) Until further investigation. — committed to leshasmlesha/youtube-dl by dstftw 3 years ago
- Add option `--extractor-retries` to retry on known extractor errors * Currently only used by youtube Fixes https://github.com/ytdl-org/youtube-dl/issues/28194 Possibly also fixes: https://github.com... — committed to nixxo/yt-dlp by pukkandan 3 years ago
- [youtube:tab] Switch continuation to browse API (closes #28289, closes #28327) Until further investigation. — committed to LRSnowX/youtube-dl by dstftw 3 years ago
Hi, sorry to comment on a closed issue, but I’m seeing a similar issue with recent updates (2021.03.02) as well:
verbose output
Then I tried setting
--default-search=ytsearchas suggested and got a little further but still seeing the same error:If you add retries for the 404 in most causes it seems to eventually sort itself out, so I’m thinking this is probably server side.Wonder if this has any similarity to #28194… Edit: though right now there seems to be an influx in 404s, where I’m trying hundreds of retries while in the browser there’s no problem.I’m using the latest EXE version
2021.03.02, same error with version2021.02.22.I can confirm, everything goes through this new front-end API endpoint now (JSON-based). Subscriptions, channel feed etc.
https://www.youtube.com/youtubei/v1/browse?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8(note the key is exactly the same as above)Confirmed that my copy was working fine a few hours ago, and now is 404 every time. Let me know if there’s any debugging I can assist with.