Skip to content
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

Client request response parse error #653

Closed
boyswan opened this issue Jan 16, 2022 · 1 comment
Closed

Client request response parse error #653

boyswan opened this issue Jan 16, 2022 · 1 comment

Comments

@boyswan
Copy link

boyswan commented Jan 16, 2022

Every RPC request is failing with
ParseError(Error("data did not match any variant of untagged enum Id", line: 1, column: 47))

Example:

let client = HttpClientBuilder::default()
    .build("https://kusama-rpc.polkadot.io:443")
    .unwrap();
let response: String = client.request("system_chain", None).await.unwrap();
// fails

The data is being returned in the actual response:
Ok(Object({"jsonrpc": String("2.0"), "result": String("Development"), "id": Number(0)}))

@niklasad1
Copy link
Member

Hey @boyswan

That should work, have you enabled --feature arbitrary-precision on serde_json by any chance?
See #480 for futher info

@boyswan boyswan closed this as completed Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants