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

"Failed to query node status... error in json rpc client, with http response metadata" #1439

Open
taitruong opened this issue Apr 3, 2024 · 1 comment

Comments

@taitruong
Copy link

Error says it all: Juno returns HTML instead of JSON. Always getting this error with Juno. Anyone knows how to fix this?

2024-04-03T20:06:25.668624Z     error   Failed to query node status     {"chain_name": "juno", "chain_id": "juno-1", "attempt": 5, "max_attempts": 5, "error": "failed to query node status: error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). error unmarshalling: invalid character '<' looking for beginning of value"}
2024-04-03T20:06:25.668702Z     error   Failed to query latest height after max attempts        {"chain_name": "juno", "chain_id": "juno-1", "attempts": 5, "error": "failed to query node status: error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). error unmarshalling: invalid character '<' looking for beginning of value"}
2024-04-03T20:06:26.255451Z     error   Failed to query node status     {"chain_name": "juno", "chain_id": "juno-1", "attempt": 1, "max_attempts": 5, "error": "failed to query node status: error in json rpc client, with http response metadata: (Status: 200 OK, Protocol HTTP/1.1). error unmarshalling: invalid character '<' looking for beginning of value"}
@jtieri
Copy link
Member

jtieri commented Apr 4, 2024

hey @taitruong, this is usually a sign that there is some issue with the underlying node where it is failing to respond with the correct json formatted data. it could be due to rate limiting, fire wall settings, the node being offline, etc.

if you check the chain-registry and try to access the /status endpoint you will see that many of the publicly available nodes respond without issue e.g. https://rpc-juno.whispernode.com/status

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

No branches or pull requests

2 participants