I'm trying to work with the bitcoin daemon and rpc.

Using the user & password I set I can't connect to it, trying with curl I always get "Empty reply from server".

It works just fine in the real network, I can connect, getinfo, etc, etc...

Is there something I might be missing? the output log in the daemon only shows:

accepted connection 190.xxx:62470 disconnecting node 190.xxx:62470

Thanks! Javyer

1 Answer 1


I leave it here. Because i spent about two days on it :-o https://github.com/bitcoin/bitcoin/issues/10218

Authentication is not optional. Configuring it yourself is optional, but bitcoind never accepts RPC connections without explicitly or implicitly configured username/password.

So, I just added user and pass from file /root/.bitcoin/.cache. And get this:

curl --user __cookie__:96fea535b009e62ddffe1c6f5090c50396d17e7f96d0b0a75eb580bdd1771d29 --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;'
  • 1
    Now this file is called /root/.bitcoin/.cookie
    – oxfn
    Jan 4, 2021 at 14:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.