Skip to content

DecodeError: Error parsing message with type 'meshtastic.protobuf.Data' #136

@sentry

Description

@sentry

Sentry Issue: BRIDGER-29

DecodeError: Error parsing message with type 'meshtastic.protobuf.Data'
  File "bridger/mesh/__init__.py", line 165, in decrypt
    data.ParseFromString(decrypted_data)

2025-08-18 18:43:32.438 | ERROR    | bridger.mesh:decrypt:168 - Error decrypting message: Error parsing message with type 'meshtastic.protobuf.Data'
Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code

  File "/app/bridger/bot.py", line 52, in <module>
    bot.run(DISCORD_BOT_TOKEN)
    |   |   -> 'MTI5MDgzMDMyMDU2Nzk4MDA3Mw.G1b9s3.aOaFsPgu0AcuVkkgfeTUS4t54G03Su2xjzV6fE'
    |   -> <function Client.run at 0x7c47876968e0>
    -> <__main__.BridgerBot object at 0x7c478767e420>

  File "/usr/local/lib/python3.12/site-packages/discord/client.py", line 906, in run
    asyncio.run(runner())
    |       |   -> <function Client.run.<locals>.runner at 0x7c47875949a0>
    |       -> <function run at 0x7c4788728040>
    -> <module 'asyncio' from '/usr/local/lib/python3.12/asyncio/__init__.py'>
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 195, in run
    return runner.run(main)
           |      |   -> <coroutine object Client.run.<locals>.runner at 0x7c4787701a80>
           |      -> <function Runner.run at 0x7c4788619bc0>
           -> <asyncio.runners.Runner object at 0x7c47879cb9e0>
  File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           |    |     |                  -> <Task pending name='Task-1' coro=<Client.run.<locals>.runner() running at /usr/local/lib/python3.12/site-packages/discord/cli...
           |    |     -> <function BaseEventLoop.run_until_complete at 0x7c47886e77e0>
           |    -> <_UnixSelectorEventLoop running=True closed=False debug=False>
           -> <asyncio.runners.Runner object at 0x7c47879cb9e0>
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 678, in run_until_complete
    self.run_forever()
    |    -> <function BaseEventLoop.run_forever at 0x7c47886e7740>
    -> <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 645, in run_forever
    self._run_once()
    |    -> <function BaseEventLoop._run_once at 0x7c4788619580>
    -> <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1999, in _run_once
    handle._run()
    |      -> <function Handle._run at 0x7c47887296c0>
    -> <Handle Task.task_wakeup(<Future finished result=None>)>
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
    |    |            |    |           |    -> <member '_args' of 'Handle' objects>
    |    |            |    |           -> <Handle Task.task_wakeup(<Future finished result=None>)>
    |    |            |    -> <member '_callback' of 'Handle' objects>
    |    |            -> <Handle Task.task_wakeup(<Future finished result=None>)>
    |    -> <member '_context' of 'Handle' objects>
    -> <Handle Task.task_wakeup(<Future finished result=None>)>

  File "/app/bridger/cogs/testmsg.py", line 126, in run_mqtt
    processor = PBPacketProcessor(service_envelope=service_envelope, strip_text=False)
                |                                  -> packet {
                |                                       from: 711400585
                |                                       to: 3641844479
                |                                       channel: 213
                |                                       encrypted: "Pa\206\n\227\215D\036\273\363<\2054\0163{\365\317\36...
                -> <class 'bridger.mesh.PBPacketProcessor'>

  File "/app/bridger/mesh/__init__.py", line 55, in __init__
    self.decrypt()
    |    -> <function PBPacketProcessor.decrypt at 0x7c4784b8ba60>
    -> <bridger.mesh.PBPacketProcessor object at 0x7c4776d3c500>

> File "/app/bridger/mesh/__init__.py", line 165, in decrypt
    data.ParseFromString(decrypted_data)
    |    |               -> b'\x192m\x8a\xf26\x95-~gi\xe1j@\x7f\x0e\xd7,\x17<\x19wG\xda\xb0\x9c\xc0k~\xee\x17\xbd\x7fH1\xf7\xf4\xc7\x027}\x10F\xd8'
    |    -> <method 'ParseFromString' of 'google._upb._message.Message' objects>
    ->

google.protobuf.message.DecodeError: Error parsing message with type 'meshtastic.protobuf.Data'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions