distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
291 stars 50 forks source link

MinigetError: Status code: 403 Appeared again #33

Closed Lampropoulosss closed 4 months ago

Lampropoulosss commented 4 months ago

Describe the bug

The library was working fine until suddenly it started throwing the following error:

MinigetError: Status code: 403
    at ClientRequest.<anonymous> (/root/project/node_modules/miniget/dist/index.js:206:27)
    at Object.onceWrapper (node:events:626:26)
    at ClientRequest.emit (node:events:511:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:535:22)
    at TLSSocket.emit (node:events:511:28)
    at addChunk (node:internal/streams/readable:332:12)
    at readableAddChunk (node:internal/streams/readable:305:9)
    at Readable.push (node:internal/streams/readable:242:10) {
  statusCode: 403
}

It does not happen consistently, it happens a few times, then its gone, then it happens again. All of these with a video that is for sure download-able.

Debug File

const stream = ytdl(ytdl.getVideoID(video), {
          filter: "audioonly",
          format: "webm",
        }).on("error", (error) => console.log(error));

        return stream.pipe(res, { end: true });

Environment

AndrewPetrovics commented 4 months ago

Same

joostwmd commented 4 months ago

Also here

greyish-coder commented 4 months ago

Same here

guimilreu commented 4 months ago

Also here!!

skick1234 commented 4 months ago

Duplicated of #31 At the present, cookies are required, and we may not able to download the stream url from different IPs.