#Lavalink is not connecting 4.1.1

1 messages · Page 1 of 1 (latest)

rain igloo
#

Wavelink isn't maintained. I'd chose a new client.

    async def connect_nodes(self):
        await self.bot.wait_until_ready()
        try:
            nodes = [wavelink.Node(uri=f"http://{LAVALINK_HOST}:{LAVALINK_PORT}", password=LAVALINK_PASSWORD)]
            await wavelink.Pool.connect(nodes=nodes, client=self.bot, cache_capacity=100)
            print(f"[WAVELINK] Connected to Lavalink node: {LAVALINK_HOST}:{LAVALINK_PORT}")
        except Exception as e:
            print(f"[WAVELINK] Failed to connect to Lavalink: {e}")```
verbal thicket
#

Thanks will try

verbal thicket
#

Hey, I'm now using pomice, but I get this error:

:warning: Error in on_ready:
Traceback (most recent call last):
  File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 504, in _run_event
    await coro(*args, **kwargs)
  File "/home/container/cogs/music.py", line 106, in on_ready
    await self.pomice.create_node(
  File "/home/container/.local/lib/python3.11/site-packages/pomice/pool.py", line 1055, in create_node
    await node.connect()
  File "/home/container/.local/lib/python3.11/site-packages/pomice/pool.py", line 496, in connect
    raise NodeConnectionFailure(
pomice.exceptions.NodeConnectionFailure: The connection to node 'MAIN' failed.```

I've checked in and out - application.yml and the config for the bot is identical, not sure where to look