Comments (8)
If it works with curl, but not with rust, then the problem seems to be in the rust code?
from packaging.
It works with every other bitcoin node I've tried it against.
from packaging.
Ok, I may take a look if you provide exact steps to reproduce on localhost
.
from packaging.
After some debugging we noticed that the setup we have in which the bitcoin node is sitting behind a reverse proxy was the issue. We don't exactly know yet why but it looks like the reverse proxy is changing the request which results in it being invalid hence the HTTP 400
error.
Bypassing the reverse proxy and communicating directly with the bitcoin server worked.
However, it is still a mystery how sending the same request using curl
through the reverse proxy works.
For context this is the request we used to test:
curl --user username:password -H 'Content-Type: application/json;' -d '{"jsonrpc":"2.0", "id": "1", "method": "getbestblockhash", "params" : []}' https://my-btc-node.mydomain.abc
from packaging.
Closing for now then. Discussion can continue / it can be re-opened if it's established that there is a bug in Bitcoin Core.
Also, looking at that crate, I assume the README is outdated, as it claims to only support end-of-life versions of Core: https://github.com/rust-bitcoin/rust-bitcoincore-rpc/#supported-bitcoin-core-versions ?
from packaging.
Related Issues (20)
- BTC core
- snap: AppArmor spam in dmesg
- snap: Enable ppc on launchpad HOT 1
- .
- snap: tor's cookie file not visible for Bitcoin Core HOT 3
- snap:
- G
- snap:
- ۷۸۹
- snap:
- Bitcore
- snap: bitcoin-core cannot access filesystems other than root HOT 1
- .
- snap: All snap versions mistakenly marked as "stable" HOT 1
- snap: Additional verification of the Bitcoin Core snap package needed (hash missing) HOT 1
- .
- Fork master into 22.0 branch HOT 3
- Add bitcoin-tx bitcoin-wallet and bitcoin-tx to snap package HOT 2
- snap:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packaging.