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

/data/validators json: unsupported value: NaN #33

Open
pro-wh opened this issue Jan 7, 2022 · 2 comments
Open

/data/validators json: unsupported value: NaN #33

pro-wh opened this issue Jan 7, 2022 · 2 comments

Comments

@pro-wh
Copy link

pro-wh commented Jan 7, 2022

We've seen some intermittent cases where requesting the list of validators results in an HTTP 500 with the error

json: unsupported value: NaN

I'd guess it happens here from a 0/0.

https://github.com/everstake/oasis-explorer/blob/7b35eb1dd7f1081d29b9a76c8cac6d11661eb1a4/services/validators.go#L55

Could we maybe substitute a 0 in that case?

cc oasisprotocol/wallet#561

@danen-carlson
Copy link

The issue has been consistent for me.

@gw0
Copy link

gw0 commented Jan 10, 2022

It is happening again:

$ curl 'https://monitor.oasis.dev/data/validators?limit=500'
json: unsupported value: NaN

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

No branches or pull requests

3 participants