Bitcoin Forum
September 04, 2024, 08:53:28 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: RPC/JSON curl call results in JSON parse error  (Read 300 times)
senc (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
July 01, 2017, 05:24:21 PM
 #1

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]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!