Skip to content

Commit

Permalink
Handle 410
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Apr 5, 2024
1 parent 050bdb0 commit c66e93f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down
2 changes: 1 addition & 1 deletion contracts/terms-of-service
1 change: 1 addition & 0 deletions eth_defi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c66e93f

Please sign in to comment.