Bitcoin Forum
November 11, 2024, 03:29:23 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / RPC/JSON curl call results in JSON parse error 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.

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!