Skip to content
← Back to Community
How to use wavelink/lavalink on
Profile icon

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

Profile icon
Profile icon

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

Profile icon

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

Profile icon

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

Profile icon


  • 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)]

Profile icon

I am currently having this issue as well, and I believe it is because does not have the uris so it connect to the websocket. I know flask can do this but it seems this cannot. I am not that experienced so this is probably wrong. If you've found a solution please let me know