Comments (3)
Update: Jsonrpsee does not hang:
Tested with cargo run -p ac-examples --example event_error_details
:
[+] Composed extrinsic: UncheckedExtrinsic(Some((MultiAddress::Id(d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)), GenericSignedExtra { era: Era::Immortal, nonce: 0, tip: AssetTip { tip: 0, asset: None } })), ([10, 0], MultiAddress::Id(8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)), 1000000000000000))
[+] Transaction got included into the TxPool.
[+] Couldn't execute the extrinsic due to RpcClient(Client(Call(Custom(ErrorObject { code: ServerError(1002), message: "Verification Error: Runtime error: Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Could not decode `RuntimeCall::System.0`:\n\tCould not decode `Call`, variant doesn't exist\n", data: Some(RawValue("RuntimeApi(\"Execution failed: Runtime panicked: Bad input data provided to validate_transaction: Could not decode `RuntimeCall::System.0`:\\n\\tCould not decode `Call`, variant doesn't exist\\n\")")) }))))
It is therefore an issue of ws-client and tungstenite rpc-client
from substrate-api-client.
Update: A warning is also produced if everything runs through okay (see #620 (comment)).
[2023-07-24T13:20:33Z INFO substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","result":"DaTgmIttoXLra0b1","id":"1"}
[2023-07-24T13:20:33Z WARN substrate_api_client::rpc::ws_client] Expected subscription, but received an id response instead: Object {"id": String("1"), "jsonrpc": String("2.0"), "result": String("DaTgmIttoXLra0b1")}
[2023-07-24T13:20:33Z DEBUG ws::handler] Handler received:
<FRAME>
final: true
reserved: false false false
opcode: TEXT
length: 115
payload length: 113
payload: 0x7b226a736f6e727063223a22322e30222c226d6574686f64223a22617574686f725f65787472696e736963557064617465222c22706172616d73223a7b22737562736372697074696f6e223a22446154676d4974746f584c7261306231222c22726573756c74223a227265616479227d7d
[2023-07-24T13:20:33Z INFO substrate_api_client::rpc::ws_client] got on_subscription_msg {"jsonrpc":"2.0","method":"author_extrinsicUpdate","params":{"subscription":"DaTgmIttoXLra0b1","result":"ready"}}
So I suppose the warning is wrong, but one needs to differ between the messages:
- If the "result" is a String with the subscription ID, that's fine. No need to issue a warning
- If there's not "result" but an "error" instead, that should result in a returned error
from substrate-api-client.
Still there on https://github.com/scs/substrate-api-client/tree/polkadot-v0.9.42-tag-v0.14.0
from substrate-api-client.
Related Issues (20)
- release api-client v0.17.0 HOT 1
- Update to parity branch v1.7.1 HOT 3
- Add example with user created call for (unstable) rpc api
- Add metadata runtime checks and warn about mismatches
- Add dynamic extrinsic signature submission
- Extend pallet_contract_tests
- release-polkadot-v1.7.0
- release-polkadot-v1.7.2
- release-polkadot-v1.8.0
- make stable build work for std
- implement `balance_transfer_keep_alive`
- release substrate-client-keystore to crates.io HOT 2
- Question: less crates on crates on crates.io HOT 1
- accept retracted XtStatus HOT 6
- Error while subscribing transfer event HOT 6
- Investigate: Chainhead API
- Test/Example for WebAssembly HOT 3
- Nightly build HOT 1
- Investigate WebAssembly support for '-client' feature
- Refactor SubmitAndWatch trait
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from substrate-api-client.