brave / browser-laptop

[DEPRECATED] Please see https://github.com/brave/brave-browser for the current version of Brave
https://www.brave.com
Other
7.94k stars 975 forks source link

Transition is still occurring after update to 0.19.88 for some users #11936

Closed LaurenWags closed 6 years ago

LaurenWags commented 6 years ago

Test plan

  1. Create a wallet with 0.18.36
  2. Launch into 0.19.92 or higher with LEDGER_VERBOSE=true
  3. You may see logs like ledger client is currently busy; transition will be retried shortly (this was attempt 1)
  4. If you see this and eventually the transition finishes, you know it worked 😄 Before, you would have seen the message ledger client is currently busy; transition will be retried on next launch

Original issue description

Description

Some users are still reporting seeing the transition after updating to 0.19.88 https://twitter.com/stshank/status/929846370835378183

Steps to Reproduce

TBD - further information needed.

Actual result: Transition is still occuring

Expected result: When not needed, transition should not occur.

Reproduces how often: unknown

Brave Version

about:brave info: 0.19.88

Reproducible on current live release: Yes

Additional Information

cc @kjozwiak

BrendanEich commented 6 years ago

We need a timeout to stop the endless spinner in a way that the user can grok, and take better action in response to.

bsclifton commented 6 years ago

OK- after some investigation, I've found at least one fatal issue which we need to handle

A different user shared logs and ran into this scenario:

The ledger client was stuck in a busy situation for this user because their workplace blocked the "privateinternetaccess.com" used for reconciling. We contact this service to get timestamps for when reconciliation needs to happen, so it's not specific to the transition

There are two actions I'm going to try and take to resolve these problems:

  1. Update the transition code to retry after a delay (15 mins, for example)
  2. Gracefully handle privateinternetaccess.com being blocked (captured with https://github.com/brave/browser-laptop/issues/11945)

An example of #2 that I initially proposed was: update the Payments screen to show fatal errors which are preventing the ledger from working (corrupt file, can't reach server, etc). @mrose17 provided a better solution which I'm incorporating now 😄