You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got peatio setup but now I have an issue with the coin_rpc.rb file settings. When using CNT as protocol I am getting the following error:
I, [2019-05-07T01:22:56.280162 #5126] INFO -- : CNT -> {"jsonrpc":"2.0","method":"getbalance","params":[],"id":"0"}
I, [2019-05-07T01:22:56.762616 #5126] INFO -- : [error]: 757: unexpected token at '<title>Unauthorized Access</title>
401 Unauthorized
'
However I can get the proper response with curl using the below command:
curl -u Username:Password --digest -X POST http://127.0.0.1:44444/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_block_count"}' -H 'Content-Type: application/json'
RESPONSE:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"count": 1829091,
"status": "OK"
}
}
It seems like Peatio needs to pass the "digest" argument for this to work. How can I add the --digest argument into the coin_rpc.rb file into the "class CNT < self" ?
The text was updated successfully, but these errors were encountered:
Hello @pankaj9310 ,
I got peatio setup but now I have an issue with the coin_rpc.rb file settings. When using CNT as protocol I am getting the following error:
I, [2019-05-07T01:22:56.280162 #5126] INFO -- : CNT -> {"jsonrpc":"2.0","method":"getbalance","params":[],"id":"0"}
I, [2019-05-07T01:22:56.762616 #5126] INFO -- : [error]: 757: unexpected token at '<title>Unauthorized Access</title>
401 Unauthorized
'However I can get the proper response with curl using the below command:
curl -u Username:Password --digest -X POST http://127.0.0.1:44444/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_block_count"}' -H 'Content-Type: application/json'
RESPONSE:
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"count": 1829091,
"status": "OK"
}
}
It seems like Peatio needs to pass the "digest" argument for this to work. How can I add the --digest argument into the coin_rpc.rb file into the "class CNT < self" ?
The text was updated successfully, but these errors were encountered: