cosmos / relayer

An IBC relayer for ibc-go
Apache License 2.0
390 stars 1.71k forks source link

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

Open taitruong opened 7 months ago

taitruong commented 7 months ago

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 commented 7 months ago

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