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

[error] Example code does not work #144

Open
ssantos21 opened this issue Aug 27, 2024 · 6 comments
Open

[error] Example code does not work #144

ssantos21 opened this issue Aug 27, 2024 · 6 comments

Comments

@ssantos21
Copy link

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"
@sansosti
Copy link

same error here

@oleonardolima
Copy link
Collaborator

oleonardolima commented Aug 28, 2024

It's weird, it worked once for me and then it started failing. I'll take a better look at it.

@sansosti
Copy link

I run the example code again today and it worked fine.
Something going on with electrum.blockstream.info:50002?

@oleonardolima
Copy link
Collaborator

I run the example code again today and it worked fine. Something going on with electrum.blockstream.info:50002?

That would be my guess, but still, I think it can be a better error message if it's a specific one from their side.

@ssantos21
Copy link
Author

I don't think so. If you try other servers (Electrum wallet shows multiple servers), you will notice the same issue.
Maybe something intermittent?

@sansosti
Copy link

definitely something intermittent, as - right after I said it was working fine for me - it started failing again!

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

3 participants