Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect when connection to dcrd is not available and display outage http view #356

Open
raedah opened this issue Feb 22, 2018 · 6 comments · May be fixed by #2012
Open

Detect when connection to dcrd is not available and display outage http view #356

raedah opened this issue Feb 22, 2018 · 6 comments · May be fixed by #2012

Comments

@raedah
Copy link

raedah commented Feb 22, 2018

When connection to dcrd is lost or unavailable, display a msg to web visitors about an outage.

@chappjc
Copy link
Member

chappjc commented Mar 13, 2019

Currently a lost dcrd connection is bad news and there is currently a PR to disable autoreconnect: #1130
In the future, a better solution that detects disconnect and reconnect can perhaps be implemented, but that's presently not straightforward.

@ukane-philemon
Copy link
Collaborator

@chappjc, how do we want this to be? A mini banner with a message on the UI and a message to API consumers?

@chappjc
Copy link
Member

chappjc commented Dec 26, 2022

I'd say something down at the bottom near the red/green indicator. Maybe orange with next next to it.
But, meh

@ukane-philemon
Copy link
Collaborator

I'd say something down at the bottom near the red/green indicator. Maybe orange with next next to it. But, meh

Okay, then how about API consumers?

@chappjc
Copy link
Member

chappjc commented Dec 26, 2022

I'd say something down at the bottom near the red/green indicator. Maybe orange with next next to it. But, meh

Okay, then how about API consumers?

I'd have to check, but I think the "ready" flag already handles this.

@ukane-philemon
Copy link
Collaborator

I think the "ready" flag already handles this.

It should but I don't think it is set when we fail to update connections(which will fail if the node is disconnected).

I'm thinking c.Status should be set to false if we fail at line 167.

https://github.com/decred/dcrdata/blob/master/cmd/dcrdata/internal/api/apiroutes.go#L166-#L200

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

Successfully merging a pull request may close this issue.

3 participants