Questions tagged [json-rpc]

JSON-RPC is a standard JSON data-format based (r)emote (p)rocedure (c)all protocol.

See http://json-rpc.org/ for specification and implementations for various languages.

JSON stands for JavaScript Object Notation. It is a text-based lightweight data-interchange format. See http://www.json.org/ for details.

RPC stands for remote procedure call, which is a family of protocols. See the Wikipedia article Remote procedure call for origins, current variations and applications.

673 questions
0
votes
1 answer

Print status code from the post in a json-rpc call

I have a working script that does the job just fine but I can't seem to figure out how to print the status code after the script runs. Can someone please review and provide some guidance and help? import requests import json url =…
John
  • 125
  • 2
  • 10
0
votes
1 answer

Python HTTPS Post: can not find existing url

I am currently working on a project where i have to send json object to an embedded pc, which implements Json RPC. The device is in my LAN, has an ip address and is reachable. Like two weeks ago my code worked, but as I sat down today to go on it…
JWo
  • 650
  • 1
  • 6
  • 23
0
votes
3 answers

Jackson JSON-RPC deserilisation to generic Object

I am trying to deserialise a JSON-RPC object with Jackson. The format of JSON-RPC is : { "result": "something", "error": null, "id": 1} In my case the result property is an generic Object. I have a class for deserilising the response: public class…
alex
  • 705
  • 9
  • 21
0
votes
1 answer

How to export the output of bitcoind JSON-RPC calls using bitcoin-ruby interface to a text file in tab-delimited format

I am running the bitcoind server in Ubuntu 16.04. Also using a method of connecting to bitcoind's RPC using bitcoin-ruby: require 'bitcoin' require 'net/http' require 'json' RPCUSER = "**" RPCPASSWORD = "**" HOST = "localhost" PORT= 8332 def…
Rubz
  • 95
  • 8
0
votes
1 answer

method not found error while accessing web service using asihttprequest

I've created SOAP web service that would be accessible from Objective-C environment with ASIHTTPRequest library using JSON-RPC bridge . When I tested it from JavaScript everything where OK. But from Objective-C I got an error …
0
votes
1 answer

RPC call on bitcoind for adding P2SH

I have been searching around a lot and I can't seem to figure this out. I want to create a transaction with a custom P2SH address by using Bitcoin Core's RPC calls. I found there is a redeemScript field in signrawtransaction so I'm assuming this is…
Jesper
  • 472
  • 1
  • 4
  • 14
0
votes
0 answers

How do Pools works with JSON-RPC?

I have a bad time understanding this code. I wanna know whether what does it do if some miners connected to it sends something like this: { "jsonrpc": "2.0", "method": "mining.subscribe", "params": {}, "id": 3 } Does it parse it…
ted
  • 21
  • 4
0
votes
2 answers

JSON RPC response to Array Android

I managed to get results for a json rpc request, like this: {"id":1,"jsonrpc":"2.0","result":{"channels":[{"channel":"Channel A ","channelid":2165,"label":"Channel A"},{"channel":"Channel B ","channelid":748,"label":"Channel B"} etc. I would like…
0
votes
1 answer

Simple C# JSON-RPC (Client only) Using HTTPClient

There are several examples out there including AustinHarris.JsonRPC which include fully packaged JSON-RPC servers. Those that I can find for clients seem to just use Byte stream reading. I'm trying to find a simple implementation using a HTTPClient…
Daniel Davis
  • 1
  • 1
  • 3
0
votes
0 answers

creating a authenticated request for a JSON-RPC interface with sockets and C on Linux

In my current C project, I am trying implement function to access a json-rpc interface which requires a username/password. With cURL, I managed to sucessfully do that with this command: curl --user : --data-binary '
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
0
votes
1 answer

rxjs first completes whole stream chain

I have a angular 5 app with the rxjs WebsocketSubject sending jsonrpc messages. This is my sendRequest function sendRequest(request: Request): Promise { console.log(request); this.socket.next(JSON.stringify(request)); return…
Pascal
  • 2,059
  • 3
  • 31
  • 52
0
votes
2 answers

Post request over JSON RPC in Angular 4

Trying to receive JSON RPC data from the server using Angular 4 HttpClient. The received error is {code: -32600, message: "INVALID_JSON_REQUEST: The JSON sent is not a valid JSON-RPC Request object"}. The command is: curl -i -X POST -d '{"jsonrpc":…
MariF
  • 1
  • 1
  • 1
0
votes
1 answer

RPC: Method Invocation Vs Api Call

I am having a hard time understanding RPC in terms of the implementation. Several articles that I have read on RPC, I have seen following examples related to RPC: Example: A RPC api GET /readStudent?studentid=123 Example: A RPC call POST /student…
oblivion
  • 5,928
  • 3
  • 34
  • 55
0
votes
1 answer

XPages JsonRPC - update ViewScope

I am having troubles setting viewScope from jsonRPC via button (onClick). See code below. I am using a browser (FF/Chrome Mac & PC) to access the XPage. After clicking the button i get message "RPC done" as expected, but the viewScope is not…
Kermit
  • 2,865
  • 3
  • 30
  • 53
0
votes
1 answer

Error -32700 on posting form data to jsponrpc endpoint

I am creating a billing form to send data to a jsonrpc endpoint. Though the server returns status code 200; i get this response {message: "Parse error. Invalid JSON was received by the server.", code: -32700,..} $(document).on("submit",…
Debaryoh
  • 73
  • 7