Keep getting this error after a few days of the bot running on my vps. Bot stops responding/performing tasks afterwards. Any ideas why this happens and how to fix it?
Unhandled exception in internal background task 'update_channels'.
Traceback (most recent call last):
File "/root/Cozyfications/cozyfications-venv/lib/python3.12/site-packages/discord/ext/tasks/__init__.py", line 169, in _loop
await self.coro(*args, **kwargs)
File "/root/Cozyfications/Cozyfications/bot/cogs/tasks.py", line 29, in update_channels
await notify_guilds(twitch_channel=twitch_channel, bot=self.bot)
File "/root/Cozyfications/Cozyfications/bot/cogs/tasks.py", line 81, in notify_guilds
await message.edit(embeds=embeds)
File "/root/Cozyfications/cozyfications-venv/lib/python3.12/site-packages/discord/message.py", line 1520, in edit
data = await self._state.http.edit_message(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/Cozyfications/cozyfications-venv/lib/python3.12/site-packages/discord/http.py", line 371, 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: connection termination