-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Demanding RPC request fails #17016
Comments
I am having the same problem when running a script. I get the i/o timeout in the geth logs and the script returns this:
|
Possibly related: #16880 What sort of timeouts are you seeing? After 5~10 seconds, or after 2 minutes? Can you include the output of |
My query takes about 35-40 seconds, Geth is timing out at 20 seconds. |
The error for mine is very erratic and occurs sometimes quickly ( a few seconds), sometimes after a while, and sometimes not at all (takes ~30 seconds to complete). I am running a large machine with >100 peers and have LightServ setting set to 90. Perhaps the inconsistency is due to varying amounts of LightServ activity? |
We are seeing similar behaviour on 1.8.11 with It's a full, non-archival node, no LES. |
Seen in 1.8.15 with If I hammer it repeatedly, it does actually seem to return data eventually, however. It's hard to pin down. The same request sent repeatedly in succession will sometimes return and sometimes not without any noticeable pattern. As requested from @ryanschneider, here's some timed calls. The response time doesn't always go down, but varies. Generally they timeouts are between 40-50s.
|
Saw Peter pointed out a potential solution on Reddit today that you guys might be interested in. I can't say why this started in a specific version(perhaps a performance issue?) but adjusting the write timeout allowed these requests to go through for me with 1.8.17(PR was merged for 1.8.13+). Even with the adjusted timeouts, the requests generally respond before the default timeout. Though maybe that's just subjective observation with caching. Here's the relevant section of my TOML:
More details in this PR: #17240 |
BTW, you can use duration units in the config file :). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Geth version: 1.8.11-stable
OS & Version: Linux
Expected behaviour
Return a list of events
Actual behaviour
Fails with error:
I have a js/web3 script which does an
event.get()
on a token address which returns potentially hundreds of thousands of events.. It used to work fine in both Geth and Parity.. however I just tried with geth 1.8.11 and geth is giving an errorand causing the script to fail due to returning zero events.
The script still works fine using Parity.
Has some sort of timeout on long running queries been implemented?
The text was updated successfully, but these errors were encountered: