messages limits broken #78

Closed
opened 2026-10-05 01:20:15 +02:00 by adam · 7 comments
Owner

I have found messages command is a nice feature for briefly look at chat history, but it took quite a long list of messages sending.
So it looks like limits that we had in a config doesn't applied.

I have found messages command is a nice feature for briefly look at chat history, but it took quite a long list of messages sending. So it looks like limits that we had in a config doesn't applied. <!-- github-sync-id:3492818168 -->
adam closed this issue 2026-10-05 01:20:15 +02:00
Author
Owner

P.S. storelimit 3 doesn't work if you think it should be applied to messages command, it just sends all possible chat messages from start.

2025-10-07 22:58:07,770 | DEBUG | System: S&F(messages command) Enabled using limit: 3

P.S. storelimit 3 doesn't work if you think it should be applied to messages command, it just sends all possible chat messages from start. 2025-10-07 22:58:07,770 | DEBUG | System: S&F(messages command) Enabled using limit: 3 <!-- github-comment-id:3378483413 -->
Author
Owner

This was at the end of posting whole chat history in my dm

Unexpected error in deferred execution <class 'meshtastic.mesh_interface.MeshInterface.MeshInterfaceError'>
Traceback (most recent call last):
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 309, in _run
o()
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1638, in
lambda: pub.sendMessage(topic, packet=asDict, interface=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in call
cb(**kwargs)
File "/home/service5/meshing-around-20251008/mesh_bot.py", line 1359, in onReceive
send_message(auto_response(message_string, snr, rssi, hop, pkiStatus, message_from_id, channel_number, rxNode, isDM), channel_number, message_from_id, rxNode)
File "/home/service5/meshing-around-20251008/modules/system.py", line 713, in send_message
interface.sendText(text=m, channelIndex=ch, destinationId=nodeid)
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 440, in sendText
return self.sendData(
^^^^^^^^^^^^^^
File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 551, in sendData
raise MeshInterface.MeshInterfaceError("Data payload too big")
meshtastic.mesh_interface.MeshInterface.MeshInterfaceError: Data payload too big

This was at the end of posting whole chat history in my dm Unexpected error in deferred execution <class 'meshtastic.mesh_interface.MeshInterface.MeshInterfaceError'> Traceback (most recent call last): File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/util.py", line 309, in _run o() File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 1638, in <lambda> lambda: pub.sendMessage(topic, packet=asDict, interface=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/publisher.py", line 216, in sendMessage topicObj.publish(**msgData) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 452, in publish self.__sendMessage(msgData, topicObj, msgDataSubset) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/topicobj.py", line 482, in __sendMessage listener(data, self, allData) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/pubsub/core/listener.py", line 237, in __call__ cb(**kwargs) File "/home/service5/meshing-around-20251008/mesh_bot.py", line 1359, in onReceive send_message(auto_response(message_string, snr, rssi, hop, pkiStatus, message_from_id, channel_number, rxNode, isDM), channel_number, message_from_id, rxNode) File "/home/service5/meshing-around-20251008/modules/system.py", line 713, in send_message interface.sendText(text=m, channelIndex=ch, destinationId=nodeid) File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 440, in sendText return self.sendData( ^^^^^^^^^^^^^^ File "/home/service5/meshing-around/venv/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 551, in sendData raise MeshInterface.MeshInterfaceError("Data payload too big") meshtastic.mesh_interface.MeshInterface.MeshInterfaceError: Data payload too big <!-- github-comment-id:3378490545 -->
Author
Owner

This crash isn't from me; how much data did you feed?

Also messsges returns 3 and keeps 50 when hitting 100

Not sure I understand

This crash isn't from me; how much data did you feed? Also messsges returns 3 and keeps 50 when hitting 100 Not sure I understand <!-- github-comment-id:3378631494 -->
Author
Owner

Also messsges returns 3

No, it returns all available data. Not just 3 strings or 3 last messages.

> Also messsges returns 3 No, it returns all available data. Not just 3 strings or 3 last messages. <!-- github-comment-id:3378634167 -->
Author
Owner

What have i dona in chat - put reaction, wrote a phrase, put some more reaction.

After all this i just goes for messages command and get weird problems.

  1. There is a error.
  2. System send way more messages than it should now.
What have i dona in chat - put reaction, wrote a phrase, put some more reaction. After all this i just goes for messages command and get weird problems. 1. There is a error. 2. System send way more messages than it should now. <!-- github-comment-id:3378657832 -->
Author
Owner

Basically error was found as i have got all the messages in reply since afternoon when issued messages command in DM.

Basically error was found as i have got all the messages in reply since afternoon when issued messages command in DM. <!-- github-comment-id:3378663558 -->
Author
Owner

should be resolved now, thanks :)

should be resolved now, thanks :) <!-- github-comment-id:3378676569 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#78