Comments (4)
I haven't found a proper solution to handle this particular case of failing auto-refresh requests.
Do you have any suggestions to do?
from lncli-web.
@mably I haven't had time to poke around the code to see where those notifications come from, if you point me in the right direction I can see if I can come up with anything. Otherwise, it's not a big deal since you can just refresh the page to dismiss them.
from lncli-web.
Mostly from each dashboard element controller, like here: https://github.com/mably/lncli-web/blob/master/public/js/controllers/lnd/listpeers.js#L35
One solution could be to disable auto-refresh in case of similar repeating errors. Don't know how it could be cleanly implemented. May be we could skip showing identical errors unless a certain delay has elapsed.
from lncli-web.
@mably That's what I was thinking, I was also looking into see if there was any way to get a variable based on whether someone interacted with the bootbox element. Perhaps it could look at xhrStatus: Complete
from the API call?
I also feel like part of the problem is that each of those controllers is firing its own HTTP error alert (since they're all called from the page), so that causes them to multiply quickly. If one controller failed a connection, it follows that the rest would too. I'm not very experienced with node but I'll keep messing with it.
from lncli-web.
Related Issues (20)
- found 152 vulnerabilities (144 low, 4 moderate, 4 high) HOT 4
- lncli-web_directory HOT 1
- Duplicate and invalid routes in master
- gulpfile.js has bug HOT 1
- Failed to read macaroon from Path HOT 2
- NPM Install -- Fails HOT 5
- Sucessfully connected! showing on every Hello event received
- localhost:8280 ui showing nothing keep on loading
- what is defaultAuthPayReq? HOT 1
- cURL error 60: SSL certificate problem: self signed certificate
- gulpfile.js HOT 1
- NaN in channel capacity and missing info HOT 2
- npm install fails HOT 1
- Localhost:8280 unable to connect (lnd 0.10)
- Feature Request: Read only mode HOT 2
- Display readability of numbers
- SSL_ERROR_SSL on node server start up
- npm install fail HOT 3
- start server bug HOT 1
- No gulpfile found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lncli-web.