Skip to content

Conversation

jamesarich
Copy link
Collaborator

This commit introduces a new error message for when the routing rate limit is exceeded.

The following changes were made:

  • Added a new string resource for the rate limit exceeded error message.
  • Updated the Message.kt file to include the new error message in the routing error handling.

this is in response to meshtastic/protobufs#735 and closes #2436

@jamesarich jamesarich requested a review from thebentern July 20, 2025 13:08
This commit introduces a new error message for when the routing rate limit is exceeded.

The following changes were made:
- Added a new string resource for the rate limit exceeded error message.
- Updated the `Message.kt` file to include the new error message in the routing error handling.

Signed-off-by: James Rich <[email protected]>
@jamesarich jamesarich force-pushed the feat/rate-limit-error branch from 1e9839e to 6e284bb Compare July 20, 2025 23:23
@jamesarich jamesarich marked this pull request as ready for review July 21, 2025 00:10
@jamesarich
Copy link
Collaborator Author

fwict @thebentern this should kick the message status to ERROR and present that new string (along with the option to resend thanks to @RCGV1 )

you should be able to test w/ the debug apk against a fw (with the new routing error built in) off the action run once it's done

@jamesarich jamesarich requested a review from Copilot July 21, 2025 11:29
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds handling for a new rate limit exceeded error in the routing system by introducing an appropriate error message and mapping it to the corresponding routing error code.

  • Adds a new string resource for rate limit exceeded error messages
  • Updates the routing error mapping function to handle the new RATE_LIMIT_EXCEEDED error type

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
app/src/main/res/values/strings.xml Adds new string resource for rate limit exceeded error message
app/src/main/java/com/geeksville/mesh/model/Message.kt Maps the new RATE_LIMIT_EXCEEDED error value to the corresponding string resource

@jamesarich jamesarich added this pull request to the merge queue Jul 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jul 21, 2025
@jamesarich jamesarich added this pull request to the merge queue Jul 21, 2025
Merged via the queue into meshtastic:main with commit fd15515 Jul 21, 2025
4 checks passed
@jamesarich jamesarich deleted the feat/rate-limit-error branch July 21, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][Feature Request]: messages stopped by the 2s interval limit / cooldown are showing as Waiting Ack, when they were simply dropped
2 participants