Bad resource ID ERROR

error: Uncaught (in promise) BadResource: Bad resource ID
at node:http:306:27
at HttpsClientRequest._writeHeader (node:http:398:7)
at HttpsClientRequest._flushHeaders (node:_http_outgoing: 382:12)
at TLSSocket.onConnect (node:http:444:16)
at TLSSocket.emit (ext:deno_node/_events.mjs:405:35)
at _afterConnect (node:net:159:12)
at _afterConnectMultiple (node:net:214:3)
at TCP.afterConnect (ext:deno_node/internal_binding/conne ction_wrap.ts:43:11)
at TCP.handle.afterConnect (node:_tls_wrap:157:29)
at eventLoopTick (ext:core/01_core.js:175:7) So I’m developing discord bot with deno and discord.js. When I tried that play music VC, This error is throwing. This is part of the Source code…
const res = createAudioResource('../../resource/rakustereo/It_isnt_raining.mp3');
player.play(res);
player.on(AudioPlayerStatus.Playing, () => {
console.log('The audio is now playing!');
});
player.on(AudioPlayerStatus.Idle, () => {
console.log('Playback has ended.');
connection.destroy();
});
const res = createAudioResource('../../resource/rakustereo/It_isnt_raining.mp3');
player.play(res);
player.on(AudioPlayerStatus.Playing, () => {
console.log('The audio is now playing!');
});
player.on(AudioPlayerStatus.Idle, () => {
console.log('Playback has ended.');
connection.destroy();
});
4 Replies
marvinh.
marvinh.4w ago
That sounds like a bug. Can you file an issue with the steps to reproduce it here https://github.com/denoland/deno/issues ?
NEKODENDISLIKE
NEKODENDISLIKEOP4w ago
Understood, is there any additional data required to create an issue?
marvinh.
marvinh.4w ago
The team will comment in the issue if something is missing.
NEKODENDISLIKE
NEKODENDISLIKEOP4w ago
Ok, I have already post an issue with github.

Did you find this page helpful?