Message delayed
Hello :D I have the same problem #2 (closed). Not only with my ntfy instance, but with ntfy too. The message arrived an hour after. In the log, i can see :
Traceback (most recent call last):
File "/home/maubot/maubot/lib/python3.11/site-packages/mautrix/client/syncer.py", line 236, in _catch_errors
await handler(data)
File "/home/maubot/maubot/lib/python3.11/site-packages/maubot/handlers/command.py", line 142, in __call__
ok, res = await self.__call_subcommand__(evt, call_args, remaining_val)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/maubot/handlers/command.py", line 163, in __call_subcommand__
return True, await subcommand(
^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/maubot/handlers/command.py", line 154, in __call__
return await self.__mb_func__(self.__bound_instance__, evt, **call_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/plugins/cloud.catgirl.ntfy-v0.1.0-ts1709322734669.mbp/ntfy/bot.py", line 90, in subscribe
await evt.reply("This room is already subscribed to %s/%s", server, topic)
File "/home/maubot/maubot/lib/python3.11/site-packages/maubot/matrix.py", line 143, in respond
return await self.client.send_message_event(self.room_id, event_type, content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/mautrix/client/encryption_manager.py", line 162, in send_message_event
content = await self.encrypt(room_id, event_type, content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/mautrix/client/encryption_manager.py", line 89, in encrypt
return await self.crypto.encrypt_megolm_event(room_id, event_type, content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/mautrix/crypto/encrypt_megolm.py", line 84, in encrypt_megolm_event
return await self._encrypt_megolm_event(room_id, event_type, content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/maubot/maubot/lib/python3.11/site-packages/mautrix/crypto/encrypt_megolm.py", line 97, in _encrypt_megolm_event
"type": event_type.serialize(),
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'serialize'
I'm not sure where is the problem. Can we help me ?
Edited by Arch juna