forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 22, 2022, 04:24 am

Title: "bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server"
Post by: Bitcoin on Feb 22, 2022, 04:24 am
"bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server"

I used the following code to connect to the bitcoin core client and encountered this error:


bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server

My configuration file: bitcoin.conf is written as follows:


Expose the RPC/JSON API


server=1
rpcbind="127.0.0.1"
rpcport=8332
rpcuser="bitcoin"
rpcpassword="J9JkYnPiXWqgRzg3vAA"

May I ask what caused my code to report an error, and how should I solve this problem?


Source: "bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '401 Unauthorized' from server" (https://bitcoin.stackexchange.com/questions/106395/bitcoinrpc-authproxy-jsonrpcexception-342-non-json-http-response-with-401-u)