Skip to content

Commit

Permalink
More LlamaNodes error workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Sep 28, 2023
1 parent e46b428 commit e973a09
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Current
# 0.22.14

- Add `{'code': -32043, 'message': 'Requested data is not available'}` to RPC exceptions where we assume it's
an error we can either resume or switch to the next node provider. This error was encoureted with `eth_getLogs`
when using LlamaNodes.

# 0.22.13

- Allow passing `request_kwargs` to [create_multi_provider_web3](https://web3-ethereum-defi.readthedocs.io/api/provider/_autosummary_provider/eth_defi.provider.multi_provider.create_multi_provider_web3.html#eth_defi.provider.multi_provider.create_multi_provider_web3)
- When setting up [TunedWeb3Factory](https://web3-ethereum-defi.readthedocs.io/api/event_reader/_autosummary_enzyne/eth_defi.event_reader.web3factory.TunedWeb3Factory.html?highlight=tunedweb3factory) use `create_multi_provider_web3` to set up the connections
Expand Down
4 changes: 4 additions & 0 deletions eth_defi/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@
# using eth_sendRawTransaction
# One provide has not yet seeing a transaction broadcast through the other provider.
-32000,

# Some error we are getting from LlamaNodes eth_getLogs RPC that we do not know what it is all about
# {'code': -32043, 'message': 'Requested data is not available'}
-32043,
)


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.13"
version = "0.22.14"
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 e973a09

Please sign in to comment.