distubejs / ytdl-core

YouTube video downloader in javascript.
MIT License
261 stars 48 forks source link

Can't use Brightdata proxy (error 407) #71

Closed templth closed 2 months ago

templth commented 2 months ago

Describe the bug

I can't use Brightdata proxy. I got a 407 error.

I try this code:

const proxy = 'http://brd-customer-XXX:PWD@brd.superproxy.io:22225';
const proxyAuth = 'brd-customer-XXX:PWD';

const agent = ytdl.createProxyAgent({
  uri: proxy,
  token: `Basic ${proxyAuth}`
});

const audioStream = await ytdl(videoUrl, { agent, filter: 'audioonly', format: 'mp3' });

I also opened an issue on undici : https://github.com/nodejs/undici/issues/3442

Debug File

N/A

Environment

skick1234 commented 2 months ago

I cannot solve any problem with proxy, it should be due to your proxy error