You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error when trying to download video (getBasicInfo works) using HTTP IP proxy:
MinigetError: Status code: 400
{
"name": "Error",
"message": "Status code: 400",
"stack": "Error: Status code: 400\n at ClientRequest.<anonymous> (/app/node_modules/.pnpm/[email protected]/node_modules/miniget/dist/index.js:206:27)\n at Object.onceWrapper (node:events:632:26)..."
}
the code
process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";// without it TLS over http wont work (ERR_TLS_CERT_ALTNAME_INVALID error)constvideoUrl="https://www.youtube.com/watch?v=5bId3N7QZec";// 1 minute lengthexportconstytdlAgent=ytdl.createProxyAgent({uri: 'http://login:[email protected]:11229'},// the proxy i bought - provides ip port and login + passcookies);constvideoInfo=awaitytdl.getBasicInfo(videoUrl,{agent: ytdlAgent});// worksconstvideoStream=ytdl(link,{agent: ytdlAgent,
...options,});constvideoBuffer=awaitstreamToBuffer(videoStream);// error
This error is produced both locally and on the cloud linux server.
Tested with multiple http ip proxy server providers.
Environment
@distube/ytdl-core version: 4.16.4
Node.js version: 18
Operating system: macOS Sonoma and Ubuntu 22.04 (data center)
The text was updated successfully, but these errors were encountered:
Describe the bug and how to reproduce it
I get the following error when trying to download video (getBasicInfo works) using HTTP IP proxy:
MinigetError: Status code: 400
the code
This error is produced both locally and on the cloud linux server.
Tested with multiple http ip proxy server providers.
Environment
The text was updated successfully, but these errors were encountered: