Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinigetError: Status code: 403 Appeared again #33

Closed
Lampropoulosss opened this issue Jul 13, 2024 · 5 comments
Closed

MinigetError: Status code: 403 Appeared again #33

Lampropoulosss opened this issue Jul 13, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Lampropoulosss
Copy link

Lampropoulosss commented Jul 13, 2024

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

  • @distube/ytdl-core version:
  • Node.js version: v20.3.1
  • Operating system: Ubuntu 24.04
@Lampropoulosss Lampropoulosss added the bug Something isn't working label Jul 13, 2024
@AndrewPetrovics
Copy link

Same

@joostwmd
Copy link

Also here

@greyish-coder
Copy link

Same here

@guimilreu
Copy link

Also here!!

@skick1234
Copy link

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

@skick1234 skick1234 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants