Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
afairclo opened this issue Dec 5, 2024 · 0 comments
Open

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

afairclo opened this issue Dec 5, 2024 · 0 comments

Comments

@afairclo
Copy link
Contributor

afairclo commented Dec 5, 2024

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant