-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Contract.Event.query
gets stuck and does not raise
#43
Comments
I second this. Experiencing same issue on my laptop |
more findings: is there an inherent different way of connecting through edit: ok wow looks like it came through after all! just suuuuper slow |
@gosuto-inzasheru I believe these are symptoms of ApeWorX/ape#1119, just with a different provider causing the issue. when you don't restrict queries by block number, currently it queries all possible blocks for events in each transaction which is.... extremely slow, yes. will definitely want to refactor it to using filters and paging to make it speed up @Ninjagod1251 let's confirm this is indeed the same behavior, and then we can close this in favor of the ape core issue because I don't think it's alchemy causing the problem here |
ApeWorX/ape#1119 is definitely related, but i believe there is something inherently different about the way a
|
This is very strange indeed! Are you using |
indeed, in both examples my ape config looks like this:
which in the first run gives |
Gotcha, okay that makes more sense |
Ah, reading this now it seems like this provider either needs to override or change |
Environment information
ape
and plugin versions:What went wrong?
Please include information like:
running the following in console gets stuck for me (no more output, no errors) using alchemy as my default provider:
however, if i connect to alchemy directly (ie without using
ape-alchemy
):i get the following error back:
(note that if i pass
stop_block=14404196
, as proposed by the error, i do get results back for both theape-alchemy
and thegeth
approach)How can it be fixed?
feels to me the error should be raised all the way when using
ape-alchemy
, this in order to prevent endless waiting and not knowing what went wrong.The text was updated successfully, but these errors were encountered: