Handle 429 error (#782)

This commit is contained in:
Vadim Filin
2026-01-28 18:06:14 +07:00
committed by GitHub
parent 3b5940cc20
commit 5b4e8884ba
3 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ class EthereumLowerBoundProofDetector(
"no historical RPC is available",
"Method not found", // Monad error bc they don't have eth_getProofs
"invalid block height", // hyperliquid
"not supported",
)
}

View File

@@ -107,8 +107,8 @@ class JsonRpcHttpReader(
resp.map {
when (it) {
is AggregateResponse -> {
val parsed = parser.parse(it.response)
val statusCode = it.code
val parsed = parser.parse(it.response)
if (statusCode != 200) {
if (parsed.hasError() && parsed.error!!.code != RpcResponseError.CODE_UPSTREAM_INVALID_RESPONSE) {
// extracted the error details from the HTTP Body