Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Random: ledger balance error: "Error: HTTP response 401 for GET /api/balance" #3736

Closed
da2x opened this issue Sep 5, 2016 · 4 comments
Closed

Comments

@da2x
Copy link
Contributor

da2x commented Sep 5, 2016

No idea what triggers it, but happens when I open about:preferences#payments. Everything appears to be working on the page, but I get the console error “ledger balance error: "Error: HTTP response 401 for GET /api/balance"” every few hours or so.

@mrose17
Copy link
Member

mrose17 commented Sep 7, 2016

i am fairly confident you can ignore this! here's what's going on:

the ledger-balance package polls numerous blockchain reporters to get the unconfirmed balance of your brave wallet in order to report information in the right-hand corner. (the actual balance is reported via a round-trip to the actual wallet provider, but on a slower interval).

the 401 is from one of the blockchain reporters that does more aggressive load limiting than the others (not sure why it's not a 429). the way that ledger-balance works is that it round-robins between the blockchain providers and keeps track of response time, errors, etc, so when you see that 401, it's very likely that a new request is sent to another blockchain provider.

if you have some time, take a look at the README and the index.js file starting here to see the list.

thanks!

@mrose17 mrose17 added this to the 0.12.1dev milestone Sep 7, 2016
@mrose17 mrose17 self-assigned this Sep 7, 2016
@mrose17
Copy link
Member

mrose17 commented Sep 7, 2016

@Aeyoun - does the explanation above make sense? should i close this issue or ... ? thanks!

@da2x
Copy link
Contributor Author

da2x commented Sep 7, 2016

I’ve not noticed any negative effects from this, but it’s reported as an error not a warning….

@mrose17
Copy link
Member

mrose17 commented Sep 7, 2016

fair point, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants