More handling for eth_feeHistory (#2095)

### Description

Adds additional error contexts for `eth_feeHistory` which should not be
retried.

Was seeing the error pop up for `celo` and `alfajores`.

https://cloudlogging.app.goo.gl/SR7gV3PK5QzbnpFt8

### Drive-by changes

None

### Related issues

- https://discord.com/channels/935678348330434570/1096400530722537513

### Backward compatibility

_Are these changes backward compatible?_

Yes

_Are there any infrastructure implications, e.g. changes that would
prohibit deploying older commits using this infra tooling?_

None


### Testing

_What kind of testing have these changes undergone?_

None
pull/2097/head
Mattie Conover 2 years ago committed by GitHub
parent d36cf6141a
commit 79669902de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      rust/chains/hyperlane-ethereum/src/rpc_clients/mod.rs

@ -67,7 +67,10 @@ fn categorize_client_response<R>(
RateLimitErr(JsonRpcError(e)) RateLimitErr(JsonRpcError(e))
} else if METHODS_TO_NOT_RETRY.contains(&method) } else if METHODS_TO_NOT_RETRY.contains(&method)
|| (METHOD_TO_NOT_RETRY_WHEN_NOT_SUPPORTED.contains(&method) || (METHOD_TO_NOT_RETRY_WHEN_NOT_SUPPORTED.contains(&method)
&& (msg.contains("support") || msg.contains("invalid type"))) && (msg.contains("support")
|| msg.contains("invalid type")
|| msg.contains("does not exist")
|| msg.contains("not available")))
|| (METHODS_TO_NOT_RETRY_ON_REVERT.contains(&method) && msg.contains("revert")) || (METHODS_TO_NOT_RETRY_ON_REVERT.contains(&method) && msg.contains("revert"))
|| (METHODS_TO_NOT_RETRY_ON_ALREADY_KNOWN.contains(&method) || (METHODS_TO_NOT_RETRY_ON_ALREADY_KNOWN.contains(&method)
&& msg.contains("known")) && msg.contains("known"))

Loading…
Cancel
Save