-
Notifications
You must be signed in to change notification settings - Fork 984
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
Assets (tokens) are not loaded due to infura error #9280
Comments
@adambabik @cammellos would be nice if you can comment issue to understand it better. |
@churik it means it's taking too long the request, and it's timing out, we can probably extend it (at least for tests) |
Can someone familiar with the status code point me to where this is happening? Based on the logs it sounds like a eth_getLogs query is being slow, but we’ve done a lot of optimizations on our end to make those performant so I’d like to see if I can reproduce a consistently slow query. |
@yenda @cammellos can one of you point @ryanschneider to the relevant code? |
@ryanschneider I think this is happening here: https://github.com/status-im/status-go/blob/develop/services/wallet/downloader.go#L242 |
@rachelhamlin it is more visible now, I faced it several times per day. |
@yenda based on the error message reported, I think it's actually happening here: Which seems to be called from here: But I can't find where that's called to see what sort of deadline the parent context has. If there iterator is going through a large number of blocks then the queries can add up, especially if a large range is being scanned, as each iteration does 100,000 blocks. |
Think I got this error today when recovering account on latest nightly |
@churik do we have any signs of this issue in release candidate? This error |
@flexsurfer says that he got it. |
yes, lots of users report that their SNT balance is 0 all the time, even after a few relogins |
one of them @jakubgs btw |
@flexsurfer I'm asking specifically about |
oh ok , we don't have any signs of |
Then probably this issue should be closed and another one with a different description/steps to reproduce be opened. Or this one to be changed, because the problem described here doesn't reproduce currently. |
@jakubgs @flexsurfer do you have logs for issue? |
i can't reproduce this |
@churik I just tested this by installing today's nightly over the RC and creating a new account and adding a watch-only address. The tokens loaded just fine an the history did too after a while. So I can't really reproduce it now. |
I have notorious infura issues and can't repro this either. Let's keep an eye for it, but I don't think it's a v1 blocker. |
fixed by implementing retries on infura error |
Bug Report
Problem
Sometimes due to "context deadline exceeded" from
infura.io
balance can't be fetched. Can't reproduce, but potentially it can be an issue on mainnet as well.Caught by e2e.
Expected behavior
Balance assets are loaded
Actual behavior
No assets (tokens) are shown.
Full video / log: https://app.saucelabs.com/tests/aaa060e1b584497db876f67e5687a319?auth=f2c8623188b3a2a34e16a0e655e57fcd#54
Reproduction
Additional Information
Logs
The text was updated successfully, but these errors were encountered: