Hello. I was compiled innova from source last night. rpc didnt work
/innova-cli getinfo wroks fine
{
"version": 120109,
"protocolversion": 70206,
"walletversion": 61000,
"balance": 999.99898060,
"privatesend_balance": 0.00000000,
"blocks": 31261,
"timeoffset": 0,
"connections": 8,
"proxy": "",
"difficulty": 444.0228668219352,
"testnet": false,
"keypoololdest": 1512392330,
"keypoolsize": 1001,
"paytxfee": 0.00000000,
"relayfee": 0.00010000,
"errors": ""
}
But curl dont work fine.
debug.log
2017-12-04 20:20:51 Innova Core version v0.12.1.9-4d1cf19-dirty (2017-11-17 15:04:54 +0300)
...
2017-12-05 05:35:52 ThreadRPCServer incorrect password attempt from 127.0.0.1:40456
innova.conf
rpc=user
rpcpassword=password
netstat -na|grep innova
tcp 0 0 127.0.0.1:8818 0.0.0.0:* LISTEN 11107/innovad
tcp 0 0 0.0.0.0:14520 0.0.0.0:* LISTEN 11107/innovad
curl -v —user user:password —data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;'
http://127.0.0.1:8818* Rebuilt URL to:
http://127.0.0.1:8818/* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8818 (#0)
* Server auth using Basic with user 'user'
> POST / HTTP/1.1
> Authorization: Basic dXNlcjpwYXNzd29yZA==
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:8818
> Accept: */*
> content-type:text/plain;
> Content-Length: 64
>
* upload completely sent off: 64 out of 64 bytes
< HTTP/1.1 401 Unauthorized
* Authentication problem. Ignoring this.
< WWW-Authenticate: Basic realm="jsonrpc"
< Date: Tue, 05 Dec 2017 05:27:24 GMT
< Content-Length: 0
< Content-Type: text/html; charset=ISO-8859-1
<
* Connection #0 to host 127.0.0.1 left intact
Tried to change default rpc port to 19118. No effect. innova-cli works fine. curl shows 401 Unauthorized