Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coin-rpc error #22

Open
devzone777 opened this issue May 7, 2019 · 0 comments
Open

coin-rpc error #22

devzone777 opened this issue May 7, 2019 · 0 comments

Comments

@devzone777
Copy link

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" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant