Open MohamedAdany opened 3 months ago
Same here, even with a minimal example like this:
const fs = require("fs");
const ytdl = require("ytdl-core");
ytdl("http://www.youtube.com/watch?v=aqz-KE-bpKQ").pipe(
fs.createWriteStream("video.mp4")
);
It creates an empty file. 🫤
same issue here... cant do anything with this new error now
and i use discord-ytdl-core
as package
using this package for more than year, suddenly it stopped working and getting this error while trying to get video info, that will be then used to get video captions Error getting info for videoId: hTcRmj-XLEs MinigetError: Status code: 410 at ClientRequest. (/var/task/node_modules/miniget/dist/index.js:206:27)
at Object.onceWrapper (node:events:632:26)
at ClientRequest.emit (node:events:529:35)
at HTTPParser.parserOnIncomingClient (node:_http_client:700:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:541:22)
at TLSSocket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10) {
statusCode: 410
}
here is my code
try {
const { videoId } = body;
console.log("got: ", videoId);
const format = "xml"; // Default format is XML
const clientLang = query.lang || "en"; // Default language is English