Skip to content

Commit 5b4e888

Browse files
authored
Handle 429 error (#782)
1 parent 3b5940c commit 5b4e888

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Submodule public updated 1 file

src/main/kotlin/io/emeraldpay/dshackle/upstream/ethereum/EthereumLowerBoundProofDetector.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class EthereumLowerBoundProofDetector(
2929
"no historical RPC is available",
3030
"Method not found", // Monad error bc they don't have eth_getProofs
3131
"invalid block height", // hyperliquid
32+
"not supported",
3233
)
3334
}
3435

src/main/kotlin/io/emeraldpay/dshackle/upstream/rpcclient/JsonRpcHttpReader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class JsonRpcHttpReader(
107107
resp.map {
108108
when (it) {
109109
is AggregateResponse -> {
110-
val parsed = parser.parse(it.response)
111110
val statusCode = it.code
111+
val parsed = parser.parse(it.response)
112112
if (statusCode != 200) {
113113
if (parsed.hasError() && parsed.error!!.code != RpcResponseError.CODE_UPSTREAM_INVALID_RESPONSE) {
114114
// extracted the error details from the HTTP Body

0 commit comments

Comments
 (0)