Solar-Helix-Independent-Transport / allianceauth-discordbot

allianceauth-discordbot
MIT License
6 stars 18 forks source link

TimeoutError #89

Closed ppfeufer closed 1 month ago

ppfeufer commented 1 month ago

allianceauth-discordbot==3.8.1 is throwing the following error with both redis==4.6.0 and redis==5.0.8.

==> myauth/log/discordbot.log <==
ERROR:root:
Traceback (most recent call last):
  File "/home/ppfeufer/Development/Python/AllianceAuth/venv/lib/python3.12/site-packages/kombu/transport/virtual/base.py", line 997, in drain_events
    get(self._deliver, timeout=timeout)
  File "/home/ppfeufer/Development/Python/AllianceAuth/venv/lib/python3.12/site-packages/kombu/transport/redis.py", line 597, in get
    raise Empty()
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/sda1/Development/Python/AllianceAuth/allianceauth-discordbot/aadiscordbot/bot.py", line 317, in poll_queue
    self.message_connection.drain_events(timeout=0.01)
  File "/home/ppfeufer/Development/Python/AllianceAuth/venv/lib/python3.12/site-packages/kombu/connection.py", line 341, in drain_events
    return self.transport.drain_events(self.connection, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ppfeufer/Development/Python/AllianceAuth/venv/lib/python3.12/site-packages/kombu/transport/virtual/base.py", line 1000, in drain_events
    raise socket.timeout()
TimeoutError

Happens with Python 3.11 and 3.12.

pvyParts commented 1 month ago

Ah. This is not actually an error. It's invalid log spam. I'll push a fix this morning.

pvyParts commented 1 month ago

fixed in 3.8.2