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

407 error when downloading via proxy agent #155

Open
mesozoic-technology opened this issue Dec 25, 2024 · 1 comment
Open

407 error when downloading via proxy agent #155

mesozoic-technology opened this issue Dec 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mesozoic-technology
Copy link

mesozoic-technology commented Dec 25, 2024

Describe the bug and how to reproduce it

I have a proxy agent that I can call getBasicInfo() with (which I had to upgrade udici to 6.21.0). It works as expected.

But when I try to download a video, it will await for about 5 or 6 seconds and then throw an error with http status code 407.

In my proxy dashboard, I see my bandwidth use going up, so it seems like it is successful at some point in the process.

Here is my stack trace:

Uncaught Exception: MinigetError: Status code: 407
    at ClientRequest.<anonymous> (/home/thing/service/node_modules/@distube/ytdl-core/node_modules/miniget/src/index.ts:255:19)
    at Object.onceWrapper (node:events:633:26)
    at ClientRequest.emit (node:events:518:28)
    at HTTPParser.parserOnIncomingClient (node:_http_client:702:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
    at Socket.socketOnData (node:_http_client:544:22)
    at Socket.emit (node:events:518:28)
    at Readable.read (node:internal/streams/readable:782:10)
    at Socket.read (node:net:777:39)
    at flow (node:internal/streams/readable:1283:53) {
      statusCode: 407
}

Environment

  • @distube/ytdl-core version: 4.15.6
  • Node.js version: 20
  • Operating system: linux/mac
@mesozoic-technology mesozoic-technology added the bug Something isn't working label Dec 25, 2024
@mesozoic-technology
Copy link
Author

I've verified that downloading works via the proxy I am using when I download via youtube-dl-exec, so it looks like the problem is related to something that occurs in this repo or with one of its dependencies.

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

1 participant