The issue: I attempt to run a curl
request however get 401 Unauthorized error.
curl --user testuser --data-binary '{"jsonrpc": "1.0", "id": "curltest", "methodology": "getrawtransaction", "params": ["e0cee...47ac5", true]}' -H 'content-type: textual content/plain;' http://127.0.0.1:8332/ -D -
Enter host password for person 'testuser':
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Primary realm="jsonrpc"
Date: Sat, 02 Sep 2023 18:12:46 GMT
Content material-Size: 0
Content material-Kind: textual content/html; charset=ISO-8859-1
The messages within the debug log of the daemon:
2023-09-02T15:59:44Z ThreadRPCServer incorrect password try from 127.0.0.1:36472
I run bitcoind
this fashion:
/mnt/bitcoin/bin/bitcoind -conf=/mnt/bitcoin/bitcoin.conf
Additionally, I’ve a symlink for this config:
ll ~/.bitcoin/bitcoin.conf
lrwxrwxrwx 1 person person 25 Sep 1 18:42 /dwelling/person/.bitcoin/bitcoin.conf -> /mnt/bitcoin/bitcoin.conf
Config:
grep -v "#" /mnt/bitcoin/bitcoin.conf | grep -v "^$" daemon=1
daemonwait=1
...
relaxation=1
rpcallowip=192.168.0.128/25
rpcallowip=127.0.0.1
rpcauth=testuser:3ad8c2e058a161304a911bcc60c208d2$a364136d41edda037d267e909f9f0355537aefee08b6fd29da2eee59559cf084
server=1
[main]
[test]
[signet]
[regtest]
rpcauth
was created this fashion, after which inserted within the config:
python3 bitcoin/share/rpcauth/rpcauth.py testuser testpasst String to be appended to bitcoin.conf:
rpcauth=testuser:3ad8c2e058a161304a911bcc60c208d2$a364136d41edda037d267e909f9f0355537aefee08b6fd29da2eee59559cf084
Your password:
testpasst
Additionally, I attempted to exchange rpcauth
with
rpcuser=testuser
rpcpassword=testpasst
And did
kill -HUP `cat /mnt/btc_data/bitcoind.pid`
after each config change (idk wether it is wanted or not)
Sure, I’ve “t” on the finish of move all over the place (I am too pissed off to re-do all this solely to take away the typo, however the password was copy-pasted many instances so I 100% certain there is no mis-type answering curl)
What am I doing unsuitable?