MathNodes / meile-gui

Meile dVPN GUI for Linux, OS X, and Windows - Powered by the Sentinel Network
https://meile.app
GNU General Public License v3.0
36 stars 6 forks source link

Handle Unsubscription Errors and Process Accordingly #74

Open MathNodes opened 9 months ago

MathNodes commented 9 months ago

There are two messages for when and unsubscription does not work and currently it spits out the long TX Message which is unintelligible to the average user.

Here are the two known responses from failed unsubs:

Image Image

The following messages should appear in respective order:

  1. gRPC query timeout. Failed to broadcast message to server
  2. Pending session currently on blockchain. Please try your request again later.

These response can be handled in widgets.py https://github.com/MathNodes/meile-gui/blob/c2fecdd76d7755ceef07003c8a65e3ff3b1d8d38/src/ui/widgets.py#L650

MathNodes commented 8 months ago

The error messages reported to the user should be in line with the above screenshots:

  1. "Error connecting to gRPC server. Try your request again later."
  2. "Cannot unsubscribe. Pending session still on blockchain. Try your request again later."