Giter Club home page Giter Club logo

Comments (3)

haerdib avatar haerdib commented on July 18, 2024

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.

haerdib avatar haerdib commented on July 18, 2024

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:

  1. If the "result" is a String with the subscription ID, that's fine. No need to issue a warning
  2. If there's not "result" but an "error" instead, that should result in a returned error

from substrate-api-client.

clangenb avatar clangenb commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.