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

Miniget error: Status code 403 #198

Open
klauskkj10 opened this issue Feb 14, 2025 · 8 comments
Open

Miniget error: Status code 403 #198

klauskkj10 opened this issue Feb 14, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@klauskkj10
Copy link

const ytdl = require("@distube/ytdl-core");

const agent = ytdl.createAgent(JSON.parse(fs.readFileSync("./armor/cookies.json")));

async function playaudio(conn, from, url, info) {
  try {
const audioStream = ytdl(url, { filter: "audio", agent });

const chunks = [];
for await (const chunk of audioStream) {
chunks.push(chunk);
}
const audioBuffer = Buffer.concat(chunks);

await conn.sendMessage(from, { audio: audioBuffer, mimetype: "audio/mpeg" }, { quoted: info });
  } `catch (error) {
console.error("erro", error);
  }
}

Why am I getting the miniget 403 error in my code? When sending the song, it returns the error (to send the video information it is sending normally, the problem is in the download)

@klauskkj10 klauskkj10 added the bug Something isn't working label Feb 14, 2025
@praaly-dev
Copy link

still same error

@Rayyaan-1120
Copy link

same error

@raulhprimo
Copy link

The same error for me too :(

@joris2110
Copy link

Same here

@Techers
Copy link

Techers commented Feb 19, 2025

GUYS!!!! I can solve this! Don't use filter, use quality: 'highestaudio' or quality: 'highestvideo'

@klauskkj10
Copy link
Author

GUYS!!!! I can solve this! Don't use filter, use quality: 'highestaudio' or quality: 'highestvideo'

This didn't work for me. Have you tried both ways before and seen that it actually works?

@lltr
Copy link

lltr commented Feb 20, 2025

Related issue closed here #157 but still not working after updating to 4.16.4. Tried suggested solutions from comments and didn't work either.

@Rayyaan-1120
Copy link

FYI I just used another library youtube-dl-exec and it worked like a charm

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

7 participants