Catching common errors #271

Closed
opened 2026-03-21 21:54:05 -04:00 by sirdog3355 · 1 comment
sirdog3355 commented 2026-03-21 21:54:05 -04:00 (Migrated from github.com)

Errors that the logs currently get on a semi-frequent basis now are:

[2026-03-20 02:36:48]:ERROR:discord.client: Ignoring exception in on_voice_state_update
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/discord/client.py", line 504, in _run_event
    await coro(*args, **kwargs)
  File "/app/listeners/channel_link.py", line 60, in on_voice_state_update
    await before_txt_channel.set_permissions(member, overwrite=None)
  File "/usr/local/lib/python3.13/site-packages/discord/abc.py", line 1024, in set_permissions
    await http.delete_channel_permissions(self.id, target.id, reason=reason)
  File "/usr/local/lib/python3.13/site-packages/discord/http.py", line 771, in request
    raise DiscordServerError(response, data)
discord.errors.DiscordServerError: 503 Service Unavailable (error code: 0): upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: immediate connect error: No such file or directory

This is simply Discord's API having a hiccup.

[2026-03-21 22:18:48]:ERROR:discord.ext.commands.bot: Ignoring exception in command None
discord.ext.commands.errors.CommandNotFound: Command "!!" is not found

This is the bot mistakenly interpreting someone prefacing words with ! as being a command, as that is the current bot's prefix (despite prefixes not be used) in main.py.

Desired functionality is to catch these errors and have a less verbose output for readability.

Errors that the logs currently get on a semi-frequent basis now are: ``` [2026-03-20 02:36:48]:ERROR:discord.client: Ignoring exception in on_voice_state_update Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/discord/client.py", line 504, in _run_event await coro(*args, **kwargs) File "/app/listeners/channel_link.py", line 60, in on_voice_state_update await before_txt_channel.set_permissions(member, overwrite=None) File "/usr/local/lib/python3.13/site-packages/discord/abc.py", line 1024, in set_permissions await http.delete_channel_permissions(self.id, target.id, reason=reason) File "/usr/local/lib/python3.13/site-packages/discord/http.py", line 771, in request raise DiscordServerError(response, data) discord.errors.DiscordServerError: 503 Service Unavailable (error code: 0): upstream connect error or disconnect/reset before headers. reset reason: remote connection failure, transport failure reason: immediate connect error: No such file or directory ``` This is simply Discord's API having a hiccup. ``` [2026-03-21 22:18:48]:ERROR:discord.ext.commands.bot: Ignoring exception in command None discord.ext.commands.errors.CommandNotFound: Command "!!" is not found ``` This is the bot mistakenly interpreting someone prefacing words with `!` as being a command, as that is the current bot's prefix (despite prefixes not be used) in `main.py`. Desired functionality is to catch these errors and have a less verbose output for readability.
sirdog3355 commented 2026-03-30 03:37:15 -04:00 (Migrated from github.com)

Addressed by #275. No documentation updated necessary. Closing.

Addressed by #275. No documentation updated necessary. Closing.
Sign in to join this conversation.
No description provided.