Skip to content

[error] Example code does not work #144

@ssantos21

Description

@ssantos21

If you run the example code, you' ll get the error:

let client = Client::new("ssl://electrum.blockstream.info:50002").unwrap();
let res = client.server_features();
println!("{:#?}", res);
Err(
    AllAttemptsErrored(
        [
            JSON(
                Error("EOF while parsing a value", line: 1, column: 0),
            ),
        ],
    ),
)

I tried other Electrum servers and the results were the same.
In my Cargo.toml the version is 0.21.0.

[dependencies]
electrum-client = "0.21.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions