fix(storage): node upsert meshtastic_* fields + API v3 client paths#111
Merged
Conversation
Node upsert used legacy location_source/channel_utilization keys that meshflow-api no longer maps, causing startup store_node 400s. Coalesce null metrics and log the node id on HTTP errors. Closes #110
This was referenced May 22, 2026
Use /api/v3/packets/{nodenum}/ for ingest, nodes, and bot-version.
Keep v2 URL prefix when STORAGE_API_VERSION=2. Related to meshflow-api#339.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
meshtastic_location_source,meshtastic_channel_utilization, andmeshtastic_air_util_txon node upsert (fixes startupstore_node400s in [ERROR] StorageAPI.store_node on startup #110).STORAGE_API_VERSION=3with/api/v3/packets/{nodenum}/for ingest, nodes, and bot-version.STORAGE_API_VERSION=2for/api/packets/...when paired with older configs.StorageAPI.store_nodeHTTP error logs.Closes #110
Related: pskillen/meshflow-api#339, pskillen/meshflow-api#340
Deploy meshflow-api #340 before merging so v3 routes and v2 legacy aliases exist in production.
Testing performed
pytest test/meshtastic/test_serializers.py test/test_bot_version_report.py -vstore_nodeflood