SudhanPlayz / Discord-MusicBot

An advanced discord music bot, supports Spotify, Soundcloud, YouTube with Shuffling, Volume Control and Web Dashboard with Slash Commands support!
https://musicbot.darrenofficial.com
Other
2.93k stars 2.85k forks source link

Node had an error: Unexpected op "ready" with data: [object Object] #1209

Closed Legendary4226 closed 1 year ago

Legendary4226 commented 1 year ago

Please describe the problem you are having in as much detail as possible: image

Essentials:

I have this error, the lavalink is "connected" but have a "problem". My lavalink is fine and receive instructions from the bot (no errors from this side) : image

And the bot crashes just because he already sent a reply : image image

I don't know if i'm clear. I tried to just edit the code, delete all "❌ | Lavalink node is not connected" messages, but one persist and i can't find it.

Additional system info

LewdHuTao commented 1 year ago
  1. refer this, its not an issue with our code https://github.com/freyacodes/Lavalink/issues/852
  2. you get unknown interaction because your bot has bad connection, also why still use v4?
  3. never edit the code if you dont know what youre doing, you may broke the bot
lc787 commented 1 year ago
  1. refer this, its not an issue with our code Lavalink node has an error: Unexpected op "ready" with data: [object Object] freyacodes/Lavalink#852

The issue clearly states it's a client problem, the erela manager is unsupported.

LewdHuTao commented 1 year ago

The issue clearly states it's a client problem, the erela manager is unsupported.

we’re not erela, tell erela.js maintainers to fix it (surely they not gonna fix it). this repo need to do a rewrite to another wrapper for sure as erela no longer support

AndreP2211 commented 1 year ago

I got the problem fixed with the small change that I added case "ready": this.sessionId = payload.sessionId break; in "\node_modules\erela.js\dist\structures\Node.js" In line 238

Legendary4226 commented 1 year ago

Thank you @AndreP2211 ^^

@LewdHuTao Yeah it's not your code but now there is a "issue ticket" that show the problem for others. I have correctly setup everything and your code was "locked" to 'Lavalink not connected' (I updated to your V5, the issue persist !). Maybe handle this "bug" of erela.js in your code to determine if the node is working or not. Because without more explanations I was facing an error without any lines of file information, and the bot was just not working, not my fault, not yours, but this issue is real.

Finally, to be clear of what I did (because I HATE when I read a post that find the solution without telling the solution xD ).

I'm using the V5 of the bot (V4 have bugs I don't have the time to understand). I edited the file that Andre told me and everything works well ^^

LewdHuTao commented 1 year ago

Thank you @AndreP2211 ^^

@LewdHuTao Yeah it's not your code but now there is a "issue ticket" that show the problem for others. I have correctly setup everything and your code was "locked" to 'Lavalink not connected' (I updated to your V5, the issue persist !). Maybe handle this "bug" of erela.js in your code to determine if the node is working or not. Because without more explanations I was facing an error without any lines of file information, and the bot was just not working, not my fault, not yours, but this issue is real.

Finally, to be clear of what I did (because I HATE when I read a post that find the solution without telling the solution xD ).

I'm using the V5 of the bot (V4 have bugs I don't have the time to understand). I edited the file that Andre told me and everything works well ^^

everything is already handled to show whether the lavalink is working or not lol. also why would we fix bug that not from us?

"Maybe handle this "bug" of erela.js in your code to determine if the node is working or not." so you tell us to fix this issue by editing the node_modules file? fyi editing node_modules files is not something you should do

LewdHuTao commented 1 year ago

anyway "Node had an error: Unexpected op "ready" with data: [object Object]" this is not even a bug its just a warning message lol, everyone who use erela.js wrapper have this issue

phanhiep579x commented 1 year ago

I got the problem fixed with the small change that I added case "ready": this.sessionId = payload.sessionId break; in "\node_modules\erela.js\dist\structures\Node.js" In line 238

thanks!

saher228 commented 11 months ago

I got the problem fixed with the small change that I added case "ready": this.sessionId = payload.sessionId break; in "\node_modules\erela.js\dist\structures\Node.js" In line 238

Thank you very much helped out very much!!!