You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes you'll get the following error message in the rewards banner rather than the expected UI. We should probably make it a more user friendly that actually explains what happened so users understand. Maybe a retry button would help as well rather than needing to close/re-open the banner.
Oops - an error has occurred.
ERROR_FETCHING_BALANCE(1)
@codybanxs Here are the error states that the tip dialog might find itself in:
ERROR_FETCHING_BALANCE:
Trigger: the rewards service was unable to retrieve a user wallet balance either locally or (more commonly) from a wallet provider like Uphold.
Possible user actions: close dialog and retry. As mentioned above, we could also add a "retry" button for this state, which would send another request to the rewards service to query for the wallet balance.
INVALID_DIALOG_ARGS:
Trigger: the dialog window was opened with a set of arguments that are incomplete or invalid. Most likely a programming error.
Possible user action: close dialog and retry.
There are a couple of other error states that would indicate a programming error. Similar to INVALID_DIALOG_ARGS, the only thing to user could do is to close and retry.
Brave | 1.18.59 Chromium: 87.0.4280.67 (Official Build) dev (64-bit)
-- | --
Revision | 0e5d92df40086cf0050c00f87b11da1b14580930-refs/branch-heads/4280@{#1441}
OS | Windows 10 OS Version 2004 (Build 19041.630)
Verified the STR from the description and ensured that there is no error message display in the tipping banner when multiple tips are sent quickly to the same pubs.
Verified user-friendly error message Server connection error displayed in the banner when wifi/internet is down
Server connection error
Please close and reopen the tipping banner to try again.
ERR_FETCH_BALANCE : 1
Verified the console logs when wifi/internet is down
Verified following error message is displayed after executing window[Symbol.for('setTipDialogErrorForTesting')]('ERR_INVALID_DIALOG_ARGS') in the console in tipping banner
Verified the following error message after executing window[Symbol.for('setTipDialogErrorForTesting')]('ERR_FETCH_BALANCE', 1) in the console in tipping banner
Description
Sometimes you'll get the following error message in the rewards banner rather than the expected UI. We should probably make it a more user friendly that actually explains what happened so users understand. Maybe a retry button would help as well rather than needing to close/re-open the banner.
Which produced the following in the terminal:
Steps to Reproduce
Eventually you'll see the
ERROR_FETCHING_BALANCE(1)
error.Actual result:
Expected result:
Reproduces how often:
I can't reproduce 100% but I've seen this happen ~2-3 times.
Brave version (brave://version info)
Version/Channel Information:
N/A
Yes
Yes
Other Additional Information:
N/A
N/A
N/A
Miscellaneous Information:
CCing @NejcZdovc @rebron @LaurenWags
The text was updated successfully, but these errors were encountered: