yt-dlp: cannot fetch information from import for url (“stderr”: “ERROR: [youtube] xxx: Get the best YouTube experience. Sign in to save videos, subscribe, and more”
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m reporting a bug unrelated to a specific 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 and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Provide a description that is worded well enough to be understood
I’m using the yt-dlp tool in peertube to upload Youtube videos via URL, but it’s reporting an error, and I’ve updated yt-dlp without solving the problem!Now I’m using the latest version of yt-dlp 2024.05.27
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
error[5/28/2024, 6:41:34 AM] An error occurred while importing the video https://www.youtube.com/watch?v=TYtoKCSyWbY.
{
"err": {
"stack": "Error: Command failed with exit code 1: /usr/bin/python3 /var/www/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=TYtoKCSyWbY\nERROR: [youtube] TYtoKCSyWbY: Get the best YouTube experience. Sign in to save videos, subscribe, and more\n at makeError (file:///var/www/peertube/versions/peertube-v6.0.4/node_modules/execa/lib/error.js:60:11)\n at handlePromise (file:///var/www/peertube/versions/peertube-v6.0.4/node_modules/execa/index.js:124:26)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async YoutubeDLCLI.run (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-cli.js:141:24)\n at async YoutubeDLCLI.getInfo (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-cli.js:89:22)\n at async YoutubeDLWrapper.getInfoForDownload (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-wrapper.js:23:22)\n at async buildYoutubeDLImport (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/lib/video-pre-import.js:104:25)\n at async handleYoutubeDlImport (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/controllers/api/videos/import.js:113:38)",
"message": "Cannot fetch information from import for URL https://www.youtube.com/watch?v=TYtoKCSyWbY",
"code": 0,
"cause": {
"stack": "Error: Command failed with exit code 1: /usr/bin/python3 /var/www/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=TYtoKCSyWbY\nERROR: [youtube] TYtoKCSyWbY: Get the best YouTube experience. Sign in to save videos, subscribe, and more\n at makeError (file:///var/www/peertube/versions/peertube-v6.0.4/node_modules/execa/lib/error.js:60:11)\n at handlePromise (file:///var/www/peertube/versions/peertube-v6.0.4/node_modules/execa/index.js:124:26)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async YoutubeDLCLI.run (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-cli.js:141:24)\n at async YoutubeDLCLI.getInfo (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-cli.js:89:22)\n at async YoutubeDLWrapper.getInfoForDownload (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/helpers/youtube-dl/youtube-dl-wrapper.js:23:22)\n at async buildYoutubeDLImport (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/lib/video-pre-import.js:104:25)\n at async handleYoutubeDlImport (file:///var/www/peertube/versions/peertube-v6.0.4/dist/core/controllers/api/videos/import.js:113:38)",
"message": "Command failed with exit code 1: /usr/bin/python3 /var/www/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=TYtoKCSyWbY\nERROR: [youtube] TYtoKCSyWbY: Get the best YouTube experience. Sign in to save videos, subscribe, and more",
"shortMessage": "Command failed with exit code 1: /usr/bin/python3 /var/www/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=TYtoKCSyWbY",
"command": "/usr/bin/python3 /var/www/peertube/storage/bin/yt-dlp --dump-json -f bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best https://www.youtube.com/watch?v=TYtoKCSyWbY",
"escapedCommand": "\"/usr/bin/python3\" \"/var/www/peertube/storage/bin/yt-dlp\" --dump-json -f \"bestvideo[vcodec!*=av01][vcodec!*=vp9.2]+bestaudio/best[vcodec!*=av01][vcodec!*=vp9.2]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best\" \"https://www.youtube.com/watch?v=TYtoKCSyWbY\"",
"exitCode": 1,
"stdout": "",
"stderr": "ERROR: [youtube] TYtoKCSyWbY: Get the best YouTube experience. Sign in to save videos, subscribe, and more",
"cwd": "/var/www/peertube/versions/peertube-v6.0.4",
"failed": true,
"timedOut": false,
"isCanceled": false,
"killed": false
}
}
}
error[5/28/2024, 6:41:34 AM] Client log: Backend returned code 400, errorMessage is: Cannot fetch information from import for URL https://www.youtube.com/watch?v=TYtoKCSyWbY
{
"tags": [
"client"
],
"username": "root",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
"url": "https://peertube.pelagia.by/videos/upload#import-url"
}
error[5/28/2024, 6:41:34 AM] Client log: Error: Cannot fetch information from import for URL https://www.youtube.com/watch?v=TYtoKCSyWbY
{
"tags": [
"client"
],
"username": "root",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
"url": "https://peertube.pelagia.by/videos/upload#import-url"
}
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (10 by maintainers)
You need to change your IP address and/or rotate it regularly