Uncaught UnrecoverableError: This video is unavailable
at exports.playError (/root/project/node_modules/@distube/ytdl-core/lib/utils.js:164:12)
at exports.getBasicInfo (/root/project/node_modules/@distube/ytdl-core/lib/info.js:52:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Provide youtube cookies (alt account) to prevent this. I don't really know why it happens but YouTube may block your ip and require sign in (like Sign in to confirm you're not a bot error)
I am simply starting node in ssh and I type these commands one by one:
const ytdl = require("@distube/ytdl-core");
await ytdl.getBasicInfo("http://www.youtube.com/watch?v=aqz-KE-bpKQ")
Returns:
Happens for every video.
Environment