Bitcoin Forum
April 26, 2024, 09:51:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain.info Bitcoin-Qt Compatible JSON RPC error  (Read 1033 times)
murasha (OP)
Member
**
Offline Offline

Activity: 109
Merit: 10


Developer


View Profile
August 03, 2014, 07:06:00 PM
 #1

Sending a JSON request to rpc.blockchain.info:80 according to https://blockchain.info/api/json_rpc_api manual returns strange response:
Code:
{"result":{"method":{"static":false,"name":"backupwallet","class":"piuk.rpc.RPC","params":"piuk.merchant.ApiKey","returns":"void"}},"error":null,"jsonrpc":"2.0"}

Actually I am making following request:
Code:
{"method":"getinfo","params":[],"id":1}

Any ideas what can cause this problem?
1714125110
Hero Member
*
Offline Offline

Posts: 1714125110

View Profile Personal Message (Offline)

Ignore
1714125110
Reply with quote  #2

1714125110
Report to moderator
1714125110
Hero Member
*
Offline Offline

Posts: 1714125110

View Profile Personal Message (Offline)

Ignore
1714125110
Reply with quote  #2

1714125110
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
btcsql
Sr. Member
****
Offline Offline

Activity: 292
Merit: 250


View Profile
August 03, 2014, 09:53:11 PM
 #2

Blockchain.info's RPC API is completely unreliable. You should try port 443 though.
murasha (OP)
Member
**
Offline Offline

Activity: 109
Merit: 10


Developer


View Profile
August 04, 2014, 06:19:20 AM
 #3

I figured out that request must have header content-type: text/plain to make blockchain response correctly
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!