-
Notifications
You must be signed in to change notification settings - Fork 1
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
dynamic page_size for large responses (or configurable) #48
Comments
It seems the project is setup to specify page size as a configuration, but currently uses 1000 by default; Lines 123 to 140 in a290291
|
bh2smith
changed the title
Missing Field Data: query returned more than 10000 results!
[Config] Make page_size configurable (or dynamic)
Aug 23, 2023
bh2smith
changed the title
[Config] Make page_size configurable (or dynamic)
[Config] dynamic page_size when response is too large (or configurable)
Aug 23, 2023
bh2smith
changed the title
[Config] dynamic page_size when response is too large (or configurable)
dynamic page_size for large responses (or configurable)
Aug 23, 2023
According to the way the configuration toml is parsed, it looks like the indexer parameters can be set directly in the project toml. I have tried this:
but it doesn't seem to recognize... Is there something special I need to do to pass "Duration" for poll_interval maybe? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Suggestion
Sometimes the load size returned by RPCs is limited
"message":"query returned more than 10000 results. Try with this block range [0x46ADC1, 0x46ADD7]."
. It would be cool to parse this kind of error and be more dynamic about the query range (since the response actually suggests which block range to use!).Background
With any of the following Node URLs (alchemy node)
when trying to according to the following configuration
we get the following error:
I dug a bit and found that the error is raised in
ethrpc::http.rs
and its not clear how to capture the response:The query being executed is
eth_getLogs
Example
The equivalent curl request is:
which responds saying that there are too many. Is it currently possible to configure the block range width?
The text was updated successfully, but these errors were encountered: