Skip to content

Missing node ID validation causing a crash in /app/utils.py #152

@afairclo

Description

@afairclo

Error:

    |   File "/app/utils.py", line 28, in convert_node_id_from_hex_to_int

    |     return int(id, 16)

    |            ^^^^^^^^^^^

    | ValueError: invalid literal for int() with base 16: '59se%%7e'

Relevant JSON entry in nodes.json:
"59se%%7e": { "active": true, "hardware": 9, "id": "59se%%7e", "last_seen": "2024-12-05T12:04:36.932863+00:00", "longname": "Meshtastic 547e", "neighborinfo": null, "position": {}, "role": 0, "shortname": "DugR", "since": null, "telemetry": null },

I've also had the same issue once before with a node having a 'G' in the ID.

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