From 878be07b7af951a86fc13ed5e2b24700df948a1d Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Mon, 3 Apr 2023 19:27:36 -0400 Subject: [PATCH] feat: retry on optiscan api failures --- eth_retry/eth_retry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth_retry/eth_retry.py b/eth_retry/eth_retry.py index 3a1c17a..68dbe50 100644 --- a/eth_retry/eth_retry.py +++ b/eth_retry/eth_retry.py @@ -113,6 +113,8 @@ def should_retry(e: Exception, failures: int) -> bool: # From block explorer while interacting with api. Just retry. 'max rate limit reached', 'please use api key for higher rate limit', + # This one comes from optiscan specifically when you have no key + 'Too many invalid api key attempts, please try again later' # Occurs occasionally on AVAX when node is slow to sync. Just retry. 'after last accepted block',