Giter Site home page Giter Site logo

Comments (4)

mably avatar mably commented on August 23, 2024

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.

4oo4 avatar 4oo4 commented on August 23, 2024

@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.

mably avatar mably commented on August 23, 2024

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.

4oo4 avatar 4oo4 commented on August 23, 2024

@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.

selection_001

from lncli-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.