Skip to content

[jsonrpc-client-transports] jsonrpc does not deserialize if user has "arbitrary_precision" enabled in serde #520

@insipx

Description

@insipx

If user is using serde with features = ["arbitrary_precision"] then jsonrpc errors:

ParseError("data did not match any variant of untagged enum ClientResponse", Error("data did not match any variant of untagged enum ClientResponse", line: 0, column: 0))
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Rpc(Other(Canceled))', src/libcore/result.rs:1187:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Related to: serde-rs/json#505

jsonrpc deserializes into ClientResponse -> Output which are both #[serde(untagged)] enums

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions