-
Notifications
You must be signed in to change notification settings - Fork 51
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
state_getStorage
keeps failing with "No node available for storage query" in v2.0.26 (smoldot-light-js
)
#1850
Comments
state_getStorage
keeps failing with "No node available for storage query" in v2.0.26 (smoldot-light-js)state_getStorage
keeps failing with "No node available for storage query" in v2.0.26 (smoldot-light-js
)
If you could provide the logs, that would be very useful 🙏 |
Sure! I let it run for a couple of minutes: 1716984807.log |
The network query to retrieve the state trie root seems to work, but not the storage query. Suspecting this. |
Also, I'm not sure how relevant it is and why it was prompted to my console rather than piped to the log file, but I'm also seeing a lot of these:
|
So the problem indirectly comes from this filter. It filters out all peers. I think I'm going to rework the way the parachain sync service tracks parachain peers. We can assume that all parachain peers know about the parachain block stored on the relay chain. |
Something annoying is that the EDIT: we can't do that, as we don't know the height of the block. |
Summary
I use Smoldot to interact with a parachain. After updating Smoldot (
smoldot-light-js
) from version 2.0.23 to 2.0.26, calls tostate_getStorage
initially succeed but eventually start failing with the error message "No node available for storage query" and never recover.Environment
I initially observed the issue on Android, where I run my custom bindings based on
wasm-node
, but I was also able to reproduce it with Node.js and the JavaScriptsmoldot
package:Note: I realized that while I was debugging and writing the issue for 2.0.26, a new version 2.0.27 was released. I briefly checked it, but the issue persists.
Steps to reproduce
Kusama
Moonriver
$ curl https://raw.githubusercontent.com/moonbeam-foundation/moonbeam/master/specs/moonriver/parachain-embedded-specs.json \ --output moonriver.json # may require adjusting the `relayChain` value
The first attempt should complete successfully, but eventually, you will start observing errors in responses:
Please let me know if you need more details to debug this issue.
The text was updated successfully, but these errors were encountered: