-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_transaction failed when cache_allowed_requests is set to True. #3506
Comments
That was a bit of oversight on my part with implementation since this focuses on POS values. But this needs to be addressed. For now, you can get unstuck caching all requests by setting I think a decent way to address this might be to use something like a time interval value, with some defaults dependent on the chain id for some of the bigger chains and have a reasonable default for all other chains. as the validation threshold. And if the user wants to cache everything they can still set it to I'll get working on fixing this but I hope you can get unstuck for now. |
Thank you, I appreciate your response and it works. |
What happened?
When set
cache_allowed_requests
inHTTPProvider
, and assign get_transaction result to a variable, there will be an exception.Code that produced the error
Full error output
Fill this section in if you know how this could or should be fixed
No response
web3 Version
7.3.0
Python Version
3.12.3
Operating System
osx
Output from
pip freeze
No response
The text was updated successfully, but these errors were encountered: