This repository was archived by the owner on Apr 5, 2025. It is now read-only.
This repository was archived by the owner on Apr 5, 2025. It is now read-only.
ChannelTimeoutException: Unable to connect to <voice_channel_name> as it exceeded the timeout of 30.0 seconds. #328
Open
Description
Hello,
Since last week my bot is unable to detect that it has connected to the voice channel. When I execute the respective command, the bot joins the voice channel but halts for 30 seconds. After that the following exception with the stacktrace is thrown:
2024-10-04 17:34:14 ERROR Midobot Cluster#0 Details of the last command error:
Traceback (most recent call last):
File "/root/midobot/env/lib/python3.10/site-packages/wavelink/player.py", line 736, in connect
await self._connection_event.wait()
File "/usr/lib/python3.10/asyncio/locks.py", line 214, in wait
await fut
asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/midobot/env/lib/python3.10/site-packages/wavelink/player.py", line 735, in connect
async with async_timeout.timeout(timeout):
File "/root/midobot/env/lib/python3.10/site-packages/async_timeout/__init__.py", line 141, in __aexit__
self._do_exit(exc_type)
File "/root/midobot/env/lib/python3.10/site-packages/async_timeout/__init__.py", line 228, in _do_exit
raise asyncio.TimeoutError
asyncio.exceptions.TimeoutError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/midobot/env/lib/python3.10/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
File "/root/midobot/cogs/music.py", line 368, in _play
await self.ensure_voice_client(ctx)
File "/root/midobot/cogs/music.py", line 469, in ensure_voice_client
await ctx.invoke(self._connect)
File "/root/midobot/env/lib/python3.10/site-packages/discord/ext/commands/context.py", line 337, in invoke
return await command(self, *args, **kwargs)
File "/root/midobot/env/lib/python3.10/site-packages/discord/ext/commands/core.py", line 588, in __call__
return await self.callback(self.cog, context, *args, **kwargs) # type: ignore
File "/root/midobot/cogs/music.py", line 111, in _connect
vc: mido_utils.VoicePlayer = await channel.connect(cls=mido_utils.VoicePlayer)
File "/root/midobot/env/lib/python3.10/site-packages/discord/abc.py", line 1966, in connect
await voice.connect(timeout=timeout, reconnect=reconnect, self_deaf=self_deaf, self_mute=self_mute)
File "/root/midobot/env/lib/python3.10/site-packages/wavelink/player.py", line 739, in connect
raise ChannelTimeoutException(msg)
wavelink.exceptions.ChannelTimeoutException: Unable to connect to peynir as it exceeded the timeout of 30.0 seconds.
I have discord.py[voice] 2.4.0 and wavelink 3.4.1. What could be the issue? Thanks.
Metadata
Metadata
Assignees
Labels
No labels