From d9cfcf2217ab787336b598e7c6c37b989b2acd13 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Tue, 24 Oct 2023 22:58:38 +0200 Subject: [PATCH] More funny errors. We love funny errors. --- CHANGELOG.md | 5 +++++ eth_defi/middleware.py | 3 +++ pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0805e35b..404b6b5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.22.28 + +- More retryable JSON-RPC errors whitelisted. Now `ValueError: {'code': -32701, 'message': 'Please specify address in your request or, to remove restrictions, order a dedicated full node here: https://www.allnodes.com/bnb/host'}`. + + # 0.22.27 - More retryable JSON-RPC errors whitelisted. Now `{'code': -32005, 'message': 'limit exceeded'}`. diff --git a/eth_defi/middleware.py b/eth_defi/middleware.py index 1c129e4a..c4c1d0c8 100644 --- a/eth_defi/middleware.py +++ b/eth_defi/middleware.py @@ -114,6 +114,9 @@ # https://github.com/bnb-chain/bsc/issues/1215 # {'code': -32005, 'message': 'limit exceeded'} -32005, + # Some JSON-RPC provider is buying nodes from allondes.com have have screwed it up + # ValueError: {'code': -32701, 'message': 'Please specify address in your request or, to remove restrictions, order a dedicated full node here: https://www.allnodes.com/bnb/host'} + -32701, ) diff --git a/pyproject.toml b/pyproject.toml index 34145507..15108990 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "web3-ethereum-defi" -version = "0.22.27" +version = "0.22.28" description = "Python library for Uniswap, Aave, ChainLink, Enzyme and other protocols on BNB Chain, Polygon, Ethereum and other blockchains" authors = ["Mikko Ohtamaa "] license = "MIT"