Replies: 1 comment 6 replies
-
I’m unfamiliar with that chain, but it seems like the chain or node does not support querying future block heights. Why are you using block heights that don’t exist yet? It doesn’t surprise me that the backend would throw though, as it cannot possibly tell you the future. :) |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
5.6.9
Search Terms
cannot query with height in the future
Describe the Problem
"rpc error: code = Unknown desc = cannot query with height in the future; please provide a valid height: invalid height"
I am developing for Cronos and I constantly get this error at random, I might get it 200 times before finally it doesn't throw. I have to loop and catch the exception, ignore it and try again. Eventually it doesn't throw that error, but it's really annoying and there's nothing on the internet to give even a slight hint about what's causing this error.
I'm actually not sure this has anything to do with Ethers.js, but I'm not sure what software I need to look into to figure out why this happens.
If I google this error, I only get 4 links which have no information. TIA if anyone can clue me in.
Code Snippet
No response
Contract ABI
No response
Errors
Environment
Browser (Chrome, Safari, etc)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions