node-ytdl-core: Error: Too many redirects (from miniget used by ytdl-core)

2|Senpai   | Error: Too many redirects
2|Senpai   |     at ClientRequest.<anonymous> (/root/Senpai-Bot/Senpai-Bot-Discord/node_modules/miniget/lib/index.js:59:19)
2|Senpai   |     at Object.onceWrapper (events.js:316:30)
2|Senpai   |     at emitOne (events.js:115:13)
2|Senpai   |     at ClientRequest.emit (events.js:210:7)
2|Senpai   |     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21)
2|Senpai   |     at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
2|Senpai   |     at TLSSocket.socketOnData (_http_client.js:454:20)
2|Senpai   |     at emitOne (events.js:115:13)
2|Senpai   |     at TLSSocket.emit (events.js:210:7)
2|Senpai   |     at addChunk (_stream_readable.js:266:12)
2|Senpai   |     at readableAddChunk (_stream_readable.js:253:11)
2|Senpai   |     at TLSSocket.Readable.push (_stream_readable.js:211:10)
2|Senpai   |     at TLSWrap.onread (net.js:585:20)

i get this error often in the last time and im not quit sure how to handle properly since i cant catch it property (seems to be thrown in the miniget lib or smth) and maybe you could tell me if its an network issue or something like that

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 8
  • Comments: 31 (10 by maintainers)

Commits related to this issue

Most upvoted comments

yo wtf fix this shit already

Yeah that’s how you ask open source software developers who do this as a hobby in their free time to fix something! Insult them! That seems like a great idea!

Ahh it’s happening still @fent pls fix kthx ❤️

this problem might be caused by the command !serverQueue, try changing the volume to 5 maybe that could help i guess

Any updates on this?

This ‘Too many redirects’ error seems to occur when multiple ytdl calls are being processed at the same time. If i download a single youtube video at a time i never get this, only when i download multiple videos without letting the previous one finish.

It is happening with this video: https://www.youtube.com/watch?v=PimVw0LomLs

Ok I’m able to replicate with itag 22 of this. Will investigate.

Using ytb2mp3: ytb2mp3/ytb2mp3#2

This is using an outdated version of ytdl-core btw. You can see in the package-lock.json file. The error still happens with the video above, but you should always be using the latest version or you might run into other errors.