distubejs/ytdl-core

Can't use Brightdata proxy (error 407)

Closed this issue · 1 comments

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 : nodejs/undici#3442

Debug File

N/A

Environment

  • @distube/ytdl-core version: 4.14.3
  • Node.js version: 18
  • Operating system: Linux Mint 21

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