From c66e93fd41d6db4879d27f78cddfbbd2c16343a4 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Fri, 5 Apr 2024 18:22:33 +0200 Subject: [PATCH] Handle 410 --- CHANGELOG.md | 3 ++- contracts/terms-of-service | 2 +- eth_defi/middleware.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 120ede08..f1c2a06a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ files and store them in the source tree as copies. - Improved error messages for `GuardV0` - Handle HTTP 520 retryable, as returned by Alchemy JSON-RPC - +- Handle HTTP 410 retryable, as returned by dRPC +- # 0.25.3 - Improve graphql support check in `has_graphql_support()` diff --git a/contracts/terms-of-service b/contracts/terms-of-service index ac990734..90fed3a5 160000 --- a/contracts/terms-of-service +++ b/contracts/terms-of-service @@ -1 +1 @@ -Subproject commit ac9907344de7a29c864e5a7dc72ea75cd45f03d3 +Subproject commit 90fed3a5a6e44b5f8d51e145f3b03104560ce5e6 diff --git a/eth_defi/middleware.py b/eth_defi/middleware.py index db3923d8..ca195801 100644 --- a/eth_defi/middleware.py +++ b/eth_defi/middleware.py @@ -77,6 +77,7 @@ 504, 525, # Returned by Alchemy - SSL handshake failed - cause unknown, internal Alchemy failure suspected https://http.dev/525 520, # Returned by Alchemy - CloudFlare: Unknown error + 410, # happens on dRPC: requests.exceptions.HTTPError: 410 Client Error: Gone for url: https://lb.drpc.org/ogrpc?network=avalanche&dkey=xxx ) #: List of ValueError status codes we know we might want to retry after a timeout