samuelthomas2774 / nxapi

Nintendo Switch Online/Parental Controls app APIs. Show your Nintendo Switch presence in Discord, get friend notifications on desktop, and download and access SplatNet 2, NookLink, SplatNet 3 and Parental Controls data. Mirror of https://gitlab.fancy.org.uk/samuel/nxapi.git.
GNU Affero General Public License v3.0
413 stars 34 forks source link

Presence monitoring error handling #41

Open samuelthomas2774 opened 1 year ago

samuelthomas2774 commented 1 year ago

Show errors updating presence monitors in the main window instead of an error dialog. (Maybe show a banner like for updates, with a button to retry or show the full error message?) Also show a warning icon on any users with erroring monitors.

The app currently logs and ignores some temporary errors, and clears Discord presence after 10 errors, but continues retrying automatically infinitely. Errors not identified as temporary (not meaning permanent) result in an error dialog.

The app should notify the user that a non-temporary error occurred, but this should never focus the app and should be easy for the user to just ignore (pausing the monitor until retried):

Also add more helpful messages for certain errors (e.g. error responses from api.imink.app should suggest checking https://status.imink.app and trying again later, errors from the Coral API can have more detailed error messages instead of just showing the status code).

OS considerations:

Also: maybe show a panel for the proxy presence monitor when clicked like for users, instead of just opening the setup window immediately?