#My logs are getting spammed with 2 errors and i have absolutely no idea where they are coming from

1 messages · Page 1 of 1 (latest)

azure shore
#

first error:

    
{"levelname": "ERROR", "asctime": "2025-05-16 19:29:16,467", "name": "asyncio", "message": "Task exception was never retrieved\nfuture: <Task finished name='Task-217182' coro=<ReactionEvents._on_raw_message_reaction_remove() done, defined at /usr/local/lib/python3.10/site-packages/interactions/api/events/processors/reaction_events.py:70> exception=TypeError(\"'NoneType' object is not subscriptable\")>", "exc_info": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.10/site-packages/interactions/api/events/processors/reaction_events.py\", line 72, in _on_raw_message_reaction_remove\n    await self._handle_message_reaction_change(event, add=False)\n  File \"/usr/local/lib/python3.10/site-packages/interactions/api/events/processors/reaction_events.py\", line 56, in _handle_message_reaction_change\n    message = await self.cache.fetch_message(event.data.get(\"channel_id\"), event.data.get(\"message_id\"))\n  File \"/usr/local/lib/python3.10/site-packages/interactions/client/smart_cache.py\", line 397, in fetch_message\n    message = self.place_message_data(data)\n  File \"/usr/local/lib/python3.10/site-packages/interactions/client/smart_cache.py\", line 432, in place_message_data\n    channel_id = to_snowflake(data[\"channel_id\"])\nTypeError: 'NoneType' object is not subscriptable"}

and 2nd error:

{"levelname": "ERROR", "asctime": "2025-05-16 19:29:06,777", "name": "asyncio", "message": "Task was destroyed but it is pending!\ntask: <Task pending name='Task-217794' coro=<ReactionEvents._on_raw_message_reaction_remove() running at /usr/local/lib/python3.10/site-packages/interactions/api/events/processors/reaction_events.py:72> wait_for=<Future pending cb=[Task.task_wakeup()]>>"}

side note (i dont know if its related or not), someone seems to be spamming the hell out of the bot and i have no idea how to find out what they are doing so i can protect against it

{"levelname": "WARNING", "asctime": "2025-05-16 19:29:01,515", "name": "app", "message": "GET /channels/1226946300868825199/messages/{message_id} Has exceeded its ratelimit (5)! Reset in 4.813 seconds | Caused By: ../../local/lib/python3.10/asyncio/events.py:80 in _run:: self._context.run(self._callback, *self._args)"}
crude orioleBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

azure shore
#

i think i found the cause of all 3 errors:

  1. start bot, give view channel + send message, do not give message history
  2. have bot send a message
  3. restart the bot
  4. react to the message sent by the bot in step 2

it absolutely loses its shit

#

and then if the message is sent in a channel where a lot of people are adding reactions, it gets rate limited

#

is there a way to disable it even looking at reactions? i do nothing with them and never want to do anything with them

#

i was able to recreate all 3 errors by spamming a reaction on a message it could not see

modest juniper
#

I'm pretty sure this was fixed in the RC

azure shore
modest juniper
#

Yeah. The defaults are good for development, but you really want to narrow them once you know what your bot is doing