pallad icon indicating copy to clipboard operation
pallad copied to clipboard

Handle API Errors Gracefully

Open teddyjfpender opened this issue 1 year ago • 1 comments

Handling Network Errors 🚨

Sometimes, when querying for a wallet's state from an API, the response might be an error, leaving the wallet unable to obtain the state it expects (e.g. AccountInfo). One known instance of this impacting users is in prevent users from progressing/completing the onboarding (either restoring or creating a new wallet).

Expected behaviour

Gracefully handle API errors that allow users to continue onboarding. Signifiers should communicate to the user issues/errors if they are relevant -- good interaction design is paramount.

Example Logs

When creating a new wallet and typing in the correct word to prove knowledge of the created mnemonic, users are left stuck at the onboarding screen with Next button highlighted but not progressing to the Overview page. Console's logs: image

teddyjfpender avatar Jan 02 '24 03:01 teddyjfpender