Skip to content

Tons of protobuf errors #171

Description

@dziban303

Hey there,

I'm trying to get this set up. I've got it connecting to my local MQTT broker and it is seeing the messages my node is sending out, but I mostly get messages like this whenever a packet is sent:

2025-08-14 09:18:35,468 - meshtastic_prometheus_exporter - WARNING - Exception occurred in on_message: Error parsing message with type 'meshtastic.protobuf.ServiceEnvelope'

I tried connecting to the meshtastic MQTT broker and it was a constant stream of the above warning message with a few "skipping encrypted" info messages thrown in for spice, and an occasional error such as

2025-08-14 10:02:02,226 - meshtastic_prometheus_exporter - ERROR - 'user' occurred while processing MeshPacket {'from': 2099611662, 'to': 1679129998, 'decoded': {'portnum': 'NODEINFO_APP', 'payload': 'CgkhN2QyNTg4MGUSCHJlcyA4ODBlGgQ4ODBlIgbcwH0liA4oXkIgenW8kmVGuyNfNQ/WkmOPzBOwJISV+Te8Nwmx6WzF9FJIAA==', 'requestId': 2419572212, 'bitfield': 1}, 'id': 535873259, 'rxTime': 1755183722, 'rxSnr': 8.5, 'rxRssi': -30, 'hopStart': 2, 'relayNode': 14}, please consider submitting a PR/issue on GitHub: `{"from": 2099611662, "to": 1679129998, "decoded": {"portnum": "NODEINFO_APP", "payload": "CgkhN2QyNTg4MGUSCHJlcyA4ODBlGgQ4ODBlIgbcwH0liA4oXkIgenW8kmVGuyNfNQ/WkmOPzBOwJISV+Te8Nwmx6WzF9FJIAA==", "requestId": 2419572212, "bitfield": 1}, "id": 535873259, "rxTime": 1755183722, "rxSnr": 8.5, "rxRssi": -30, "hopStart": 2, "relayNode": 14}` Traceback (most recent call last):;  File "/usr/local/lib/python3.13/site-packages/meshtastic_prometheus_exporter/__main__.py", line 255, in on_native_message;    on_meshtastic_mesh_packet(packet);    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^;  File "/usr/local/lib/python3.13/site-packages/meshtastic_prometheus_exporter/__main__.py", line 219, in on_meshtastic_mesh_packet;    on_meshtastic_nodeinfo_app(cache, packet);    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^;  File "/usr/local/lib/python3.13/site-packages/meshtastic_prometheus_exporter/nodeinfo.py", line 11, in on_meshtastic_nodeinfo_app;    node_info = packet["decoded"]["user"];                ~~~~~~~~~~~~~~~~~^^^^^^^^;KeyError: 'user'

I'm not too worried about whatever noise is on the public meshtastic MQTT server but I am curious what's going on with my own network. I'm not seeing any telemetry or anything either, the only prometheus metric showing up is meshtastic_mesh_packets_total.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions