fix(app): fix browser layer notification error handling #16207
Merged
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.
Closes RQA-3108 (for the third time)
Overview
Fixes an issue in which browser layer error messages were dropped. The app shell sends MQTT error event messages on the
ALL_TOPICS
topic, but browser layer callbacks do not ever subscribe to theALL_TOPICS
topic, just their individual topic. This means when the app receives a disconnect event that is applicable to all topics, those topics do not default back to polling.We know this fixes the ticket (all of the prior fixes are valid for this specific issue, too!), because you can see the error message at
2024-09-05T18:57:34.783Z
in the Windows App Logs (attached in the ticket). The app, however, never defaults to polling, as evidence by the lack of network requests in the server logs after this time (only the ODD network requests show up).Test Plan and Hands on Testing
CURRENT BEHAVIOR REPRO
systemctl stop mosquitto
.Error - Error: read ECONNRESET
message appears.PR FIX VALDIATION
Changelog
Risk assessment