-
Notifications
You must be signed in to change notification settings - Fork 125
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
Expected subscription, but received an id response instead #620
Comments
same warning already occurred on a previous dep: |
this should be an error, not a warning, because it seems to subsequontly cause
not sure if related: #621 |
steps to reproduce: run integritee-node 1.0.36 (polkadot-0.9.42 deps)
run substrate api client example:
this will hang. a warning will be issued (because runtimes don't match), but actually it should terminate with an error. - but that's not our real issue let's build against integritee-node-runtime: diff --git a/examples/Cargo.toml b/examples/Cargo.toml
index dc4e87b..d27c48f 100644
--- a/examples/Cargo.toml
+++ b/examples/Cargo.toml
@@ -15,7 +15,7 @@ wabt = "0.10.0"
# Substrate dependencies
frame-support = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
frame-system = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
-kitchensink-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
+#kitchensink-runtime = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
pallet-balances = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
pallet-identity = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
pallet-staking = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" }
@@ -26,3 +26,5 @@ sp-version = { git = "https://github.com/paritytech/substrate.git", branch = "po
# local deps
substrate-api-client = { path = "..", features = ["tungstenite-client", "ws-client", "staking-xt"] }
+
+my-runtime = { package = "integritee-node-runtime", git = "https://github.com/integritee-network/integritee-node.git", branch = "polkadot-v0.9.42" } and diff --git a/examples/examples/transfer_with_ws_client.rs b/examples/examples/transfer_with_ws_client.rs
index e3c86bf..caf8875 100755
--- a/examples/examples/transfer_with_ws_client.rs
+++ b/examples/examples/transfer_with_ws_client.rs
@@ -15,16 +15,14 @@
//! Very simple example that shows how to use a predefined extrinsic from the extrinsic module.
-use kitchensink_runtime::{Runtime, Signature};
+//use kitchensink_runtime::{Runtime, Signature};
+use my_runtime::{Runtime, Signature};
use sp_core::{
crypto::{Pair, Ss58Codec},
sr25519,
};
use sp_runtime::MultiAddress;
-use substrate_api_client::{
- extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, AssetTipExtrinsicParams, ExtrinsicSigner,
- GetAccountInformation, SubmitAndWatch, XtStatus,
-};
+use substrate_api_client::{extrinsic::BalancesExtrinsics, rpc::WsRpcClient, Api, AssetTipExtrinsicParams, ExtrinsicSigner, GetAccountInformation, SubmitAndWatch, XtStatus, PlainTipExtrinsicParams};
fn main() {
env_logger::init();
@@ -39,7 +37,7 @@ fn main() {
// Initialize api and set the signer (sender) that is used to sign the extrinsics.
let client = WsRpcClient::with_default_url();
- let mut api = Api::<_, _, AssetTipExtrinsicParams<Runtime>, Runtime>::new(client).unwrap();
+ let mut api = Api::<_, _, PlainTipExtrinsicParams<Runtime>, Runtime>::new(client).unwrap();
api.set_signer(ExtrinsicSigner::<_, Signature, Runtime>::new(alice.clone()));
// Retrieve bobs current balance.
then, the result is:
in this case, however, the reported block hash is correct. still, what is the warning about? |
it was good reproducing this issue with the basic api-client example. This actually showed me that our problem seems to be rooted elsewhere. Why?
Therefore, we may need to investigate further. While this warning is confusing and should be tackled IMO, getting rid of it will very likely not resolve our issue. |
our real issue is #624 |
Summarizing Issues:
|
Closing this for now. To my understanding, all issues are already tracked in other issues. Please reopen if that's not the case. |
[2023-07-17T12:15:31Z 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("5mV2Ue1jpPJKhTBp")}
I guess this has to do with recent update of behavior of the spi-client.
This happens when we do
submit_and_watch_extrinsic_until
using api client: polkadot-v0.9.42-tag-v0.10.0#686b7ef0aa8da255d3864a3fc703e32193813700
node is based on: polkadot-v0.9.42#569aae5341ea0c1d10426fa1ec13a36c0b64393b
it looks like the consequence of this warning is that the return value is "extrinsic failed" although it succeeded
The text was updated successfully, but these errors were encountered: