Ask coding questions

← Back to all posts
How to use wavelink/lavalink on
Kingk1ll3r (0)

I want to use wavelink in my python program an i dont know how to use it, someone know how to use it on :)?

SixBeeps (5056)

Looks like pip installing it installs it just fine, but I'm not able to test if it works 100% or not.

Kingk1ll3r (0)

the problem is every time i want to host the bot i get some warnings and i dont know why

SixBeeps (5056)

@Kingk1ll3r Can you post the warnings so that I can take a look?

Kingk1ll3r (0)


  • Running on (Press CTRL+C to quit)
    WEBSOCKET | Connection Failure:: Cannot connect to host ssl:default [Connect call failed ('', 2333)]
    Traceback (most recent call last):
    File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 936, in _wrap_create_connection
    return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
    File "/usr/lib/python3.8/asyncio/", line 1025, in create_connection
    raise exceptions[0]
    File "/usr/lib/python3.8/asyncio/", line 1010, in create_connection
    sock = await self._connect_sock(
    File "/usr/lib/python3.8/asyncio/", line 924, in _connect_sock
    await self.sock_connect(sock, address)
    File "/usr/lib/python3.8/asyncio/", line 496, in sock_connect
    return await fut
    File "/usr/lib/python3.8/asyncio/", line 528, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
    ConnectionRefusedError: [Errno 111] Connect call failed ('', 2333)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/wavelink/", line 76, in connect
self._websocket = await self._node.session.ws_connect(uri, headers=self.headers, heartbeat=self._node.heartbeat)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 721, in _ws_connect
resp = await self.request(method, url,
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 480, in _request
conn = await self._connector.connect(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 523, in connect
proto = await self._create_connection(req, traces, timeout)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 858, in _create_connection
, proto = await self._create_direct_connection(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 1004, in _create_direct_connection
raise last_exc
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 980, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/aiohttp/", line 943, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host ssl:default [Connect call failed ('', 2333)]