PythonistaGuild / Wavelink

A powerful Lavalink library for Discord.py.
https://wavelink.dev
MIT License
396 stars 183 forks source link

An unexpected error occurred while connecting Node #299

Closed EliasCouma closed 7 months ago

EliasCouma commented 7 months ago

An unexpected error occurred while connecting Node(identifier=, uri=, status=NodeStatus.CONNECTING, players=0) to Lavalink: "" If this error persists or wavelink is unable to reconnect, please see: https://github.com/PythonistaGuild/Wavelink/issues"

Not 100% sure why this is happening, especially as it's not giving me a specific reason "Lavalink: "" "

chillymosh commented 7 months ago

@EliasCouma Please make sure you are running Lavalink 4 - currently you need to use this hotfixed version: https://repo.lavalink.dev/artifacts/lavalink/fe62703c/Lavalink.jar

Also, when trying to connect, make sure the URI has the protocol prefix of http://

EliasCouma commented 7 months ago

Yeah, sadly still getting the same error

chillymosh commented 7 months ago

You'll need to provide some more information.

EliasCouma commented 7 months ago

Also getting the same error attempting to connect to a node that's not even online

chillymosh commented 7 months ago

You'll have to show your code, ideally by joining the Discord. I have a suspicion you are entering a race condition by trying to connect in the wrong event / place.

It either has to be in the Bot subclass setup_hook or in the cog_load of a Cog of which the extension containing the Cog is loaded within the setup_hook

EliasCouma commented 7 months ago

You're absolutely right! I moved it into my setup hook and it works now, silly me. Thank you!