Browser-laptop: Ledger recovery should be aware of network status and give appropriate errors when the connection is down.

Created on 12 Oct 2016  路  15Comments  路  Source: brave/browser-laptop

Did you search for similar issues before submitting this one?
Yes

Describe the issue you encountered:
While trying to recover a wallet, my network connection went down. The error message from the system indicated that my keys were somehow incorrect. Once the network connection was restored, the keys worked without issue.

Expected behavior:
The system should display appropriate error messages.

  • Platform (Win7, 8, 10? macOS? Linux distro?):
    Tested on OS X
  • Brave Version:
    0.12.5
  • Steps to reproduce:

    1. Generate recovery keys

    2. Remove your ~brave folder and create a new wallet

    3. Open the recovery dialog, enter keys but do not submit the form

    4. Disable your network connection (or just happen to have a really poor one)

    5. Submit the form

    6. Observe the error message

  • Screenshot if needed:
    screen shot 2016-10-13 at 1 01 40 am
  • Any related issues:

Test Plan

  1. Go to Preferences > Payments
  2. Click Advanced Settings
  3. Click Recover Your Wallet
  4. Try to recover with the wrong keys
  5. You should see the "Recovery Failed" overlay
  6. Repeat steps 1-3
  7. Turn off network connection
  8. Try to recover with right or wrong keys
  9. You should see the "Network Error" overlay
bug featurrewards needs-STR

Most helpful comment

it shouldn't have been closed. i did the first part, but now it's up to you!!!

All 15 comments

Groundwork laid by @mrose17 w/ https://github.com/brave/browser-laptop/pull/5924

This is ready for the UI work. Marking as 0.13.1 and assigning over to @jkup

@bsclifton did you mean to close this?

it shouldn't have been closed. i did the first part, but now it's up to you!!!

Looks like the self-closing keywords from the commit unintentionally closed it :smile:

...
For the person who fixes #4720 - when...

rather amusing...

@bsclifton - can we close this one too?

@mrose17 I don't think so. #6047 focuses on the UI change.

@mrose17 reading through your commit I'm still not sure how I can differentiate between a network error and a failed recovery (bad keys). Can you help me understand how to do this UI work?

Thanks!!

@mrose17 looks like @jkup needs some more info (he should be back next week)

I'm still not sure how I can differentiate between a network error and a failed recovery (bad keys). Can you help me understand how to do this UI work?

here is the answer: look at ledgerInfo.error.err if it is a STRING, then there is a data input or server error; if it is an object, e.g., { errorCode: -109 } then there is a network error.

It seems this is not fixed. I followed the same steps after restarting the browser but it did not work either

In my case, the breakage was a bit nuanced.
Without a network connection, the UI did nothing. No warning, no error, it just took my clicks and walked away.

When the network connection was restored, somewhere in the middle of my machine-gunning the control, the recovery keys were accepted.

cc @bsclifton

Moved to 0.13.3

Removing milestone for now and putting on backlog- we're tracking in Asana. Will update once we have prioritized

Closing at @mrose17 direction.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bsclifton picture bsclifton  路  3Comments

stevespringett picture stevespringett  路  3Comments

antiroyalty picture antiroyalty  路  3Comments

luixxiul picture luixxiul  路  3Comments

lukemulks picture lukemulks  路  3Comments