Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: senc on July 01, 2017, 05:24:21 PM



Title: RPC/JSON curl call results in JSON parse error
Post by: senc on July 01, 2017, 05:24:21 PM
I am running windows 10 64 bit
I am have install curl and verified it works
I am running an alt-coin wallet, however, I think my problem is in how I am making the call and not the client.

Running

Code:
curl --user user:password --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getinfo","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:XXXX

Returns
Code:
{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

I have checked to verify that the qt-client was running in
Code:
-server
mode by going to
Code:
http://127.0.0.1:XXXX
, logging in, and then still receive the same error code. Albeit, it did have better formatting.

This leads me to think that the server is running but I am formatting my commands incorrectly, or some option isn't turned on. Any advice is appreciated.