rust-bitcoin / rust-bitcoincore-rpc

Rust RPC client library for the Bitcoin Core JSON-RPC API.
343 stars 257 forks source link

Not working with HTTP/1.0, f.e. when proxied #303

Open jitash opened 1 year ago

jitash commented 1 year ago

image

hi, i have this error when use quick-node in rust: error: JSON-RPC error: transport error: HTTP response started with HTTP/1.0 ; expected HTTP/1.1 . anyone can help?

stevenroose commented 1 year ago

Hmm, that's interesting, I don't actually know why we enforce HTTP/1.1 being used..

But what is "quick-node"? You're not using bitcoin core?

stevenroose commented 1 year ago

Oh, is that https://www.quicknode.com/chains/btc? Interesting. So they use some HTTP proxy probably that is using HTTP/1.0.

jitash commented 1 year ago

So, how can I set compatibility with HTTP/1.0?

gdnathan commented 1 year ago

Same issue here

chinyuchan commented 7 months ago

Same issue

TheBlueMatt commented 7 months ago

Uhhh, HTTP/1.1 is from 1997, this is a bug in whatever software is requiring almost 30 year old protocols, not a bug in this library.

apoelstra commented 7 months ago

FWIW, though, it should be fixed upstream by the minreq backend. We had an issue here #259 (see also #276 and #330) which appear to be stalled out. But in principle it should be easy for this library to update their jsonrpc dep.

scolear commented 1 month ago

Same issue on v0.19.

Not sure why quicknode is using HTTP/1.0, alas we can't use it. We are trying to use it as a backup provider for when our bitcoin node is under maintenance. Instead we will spin up another one for the time being.