Skip to content

Commit

Permalink
More funny errors. We love funny errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 24, 2023
1 parent 9617efb commit d9cfcf2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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'}`.
Expand Down
3 changes: 3 additions & 0 deletions eth_defi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit d9cfcf2

Please sign in to comment.