Lunie: Error fetching validator set

Created on 6 Aug 2018  路  15Comments  路  Source: luniehq/lunie

UI Version: 0.9.3

Description:

Before I sign in, the error message "Error fetching validator set: Internal error" is displayed.

screen shot 2018-08-06 at 12 14 06 pm

I don't see anything significant in either console.

bug

Most helpful comment

Can we turn session modals into pages in vue-router instead of a z-index overlay on top of the wallet?

All 15 comments

it's odd that we are making requests before the user is signed in

Can we turn session modals into pages in vue-router instead of a z-index overlay on top of the wallet?

@nylira can you create an issue recommending this change?

I think this is a strange typo issue /stake/validators/ vs /stake/validators and I experienced it as well in #1068 . It will hopefully be resolved after this is merged.

Assumed fixed

Still an issue

What's blocking it?

the blocking label was still on there

I can't reproduce it. @faboweb are you able to reproduce it consistently?

Not consistently but it happens from time to time.
"maybeUpdateValidators" is definitely called before having signed in. Which is probably OK to already fetch non user related data in the background.
I could imagine that this happens when we connect to a node and then quickly disconnect from that node again for any reason.

So what's the desired behavior? Should getValidators be called only when connected to a node or should we suppress the error message?

Both seem to be valid options. Maybe we need to defer REST calls a little bit, so we are sure the connected node is working and we wont reconnect. This would solve the root cause.

I handle the case "skipping it" in #1216

Created #1313 to turn the session modals to pages

The rpc subscription starts before the REST client is up. The headers come in and trigger a load of the validators before the the REST server is up. This creates this issue.

Current patch: Do not load data before the user is not signed in (which should be after the REST server is up).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

faboweb picture faboweb  路  3Comments

jbibla picture jbibla  路  3Comments

fedekunze picture fedekunze  路  3Comments

fedekunze picture fedekunze  路  3Comments

faboweb picture faboweb  路  3Comments