Handle 429 error (#782)
This commit is contained in:
Submodule foundation/src/main/resources/public updated: b381391a23...78bdaca754
@@ -29,6 +29,7 @@ class EthereumLowerBoundProofDetector(
|
|||||||
"no historical RPC is available",
|
"no historical RPC is available",
|
||||||
"Method not found", // Monad error bc they don't have eth_getProofs
|
"Method not found", // Monad error bc they don't have eth_getProofs
|
||||||
"invalid block height", // hyperliquid
|
"invalid block height", // hyperliquid
|
||||||
|
"not supported",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -107,8 +107,8 @@ class JsonRpcHttpReader(
|
|||||||
resp.map {
|
resp.map {
|
||||||
when (it) {
|
when (it) {
|
||||||
is AggregateResponse -> {
|
is AggregateResponse -> {
|
||||||
val parsed = parser.parse(it.response)
|
|
||||||
val statusCode = it.code
|
val statusCode = it.code
|
||||||
|
val parsed = parser.parse(it.response)
|
||||||
if (statusCode != 200) {
|
if (statusCode != 200) {
|
||||||
if (parsed.hasError() && parsed.error!!.code != RpcResponseError.CODE_UPSTREAM_INVALID_RESPONSE) {
|
if (parsed.hasError() && parsed.error!!.code != RpcResponseError.CODE_UPSTREAM_INVALID_RESPONSE) {
|
||||||
// extracted the error details from the HTTP Body
|
// extracted the error details from the HTTP Body
|
||||||
|
|||||||
Reference in New Issue
Block a user