Skip to content

Commit

Permalink
feat: retry alchemy.io rate limit errs (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 5, 2023
1 parent c253f1e commit 2089192
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def should_retry(e: Exception, failures: int) -> bool:

# You get this ssl error in docker sometimes
'cannot assign requested address',

# alchemy.io rate limiting
'your app has exceeded its compute units per second capacity. if you have retries enabled, you can safely ignore this message. if not, check out https://docs.alchemy.com/reference/throughput'
)
if any(err in str(e).lower() for err in retry_on_errs):
return True
Expand Down

0 comments on commit 2089192

Please sign in to comment.