-
Notifications
You must be signed in to change notification settings - Fork 172
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
Illegal invocation with wasm client #971
Comments
It looks like call was canceled due to a You could temporary increase the timeout here to get rid of these but this only works on master currently, it will be in the next release. Hopefully rustwasm/gloo#283 will be merged soon 🙏 |
Yeah, it seems to be the case, will try with that PR. |
Ok, you also could enable logging from jsonrpsee (https://github.com/paritytech/jsonrpsee/blob/master/tests/wasm-tests/tests/wasm.rs#L15-#L18) to see whether the message gets stuck somewhere. What does the timestamps from the browser say? I'm a little concerned about the backtrace but it could also be something that |
What do you mean by "timestamps"? It all happened in a few milliseconds, I think. It's weird that, I can only reproduce it by calling my WASM code from JS, if I use |
Yeah, I meant how long it took for the round trip for the message. https://crates.io/crates/tracing-wasm works with the current I haven't tried it myself from JS but we could probably add some |
It completed instantly, so I think it's not the timeout case. I just created a repo for reproduction, please check it out. |
Update to gloo-timers 0.2.6 will solve this. |
awesome, thanks for helping the gloo devs. I opened a PR to require ^0.2.6 for gloo-net which contains the fix. |
Ran into this error after a succeed json rpc call. From the browser network console I can see the request and response in WebSocket frames. I'm not sure if it's related to jsonrpsee, please let me know what information may help.
The error in Chrome is
The error in Firefox seems to be more accurate:
The Rust code:
The text was updated successfully, but these errors were encountered: