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
3 answers

When is JSON-RPC over http with POST more suitable than RESTful API?

I'm currently developing a web application with a senior developer. We've agreed to use REST API for client-server communication and he sent me the parameters and the expected responses. But the design does not seem to be RESTful. Rather it looks…
Kevin Park
  • 318
  • 5
  • 8
0
votes
1 answer

Golang JSON-RPC Server Control at Shutdown

I am writing a Shutdown Handler for a Program which uses Golang's built-in JSON-RPC Server and I have faced a difficulty. Could you help me with it? I stop accepting incomming Connections, stop accepting incoming Requests for existing Connections…
user5672542
0
votes
1 answer

JSON-RPC, "cannot unmarshal object"

I am trying to learn how JSON-RPC works and am testing it in Go language (golang). The Go program works fine. It does what it should do. But when I try to make a raw request via telnet, it gives an error. The working and super simple JSON-RPC server…
user5672542
0
votes
1 answer

JSON-RPC - Cannot retrieve correct POST data response from a logged in site with Python Requests library

Setup: Python 2.7.10, Requests library, Windows 8.1 I am new to json-rpc and need to set up automation tests for sending POST requests and checking the response. I am having difficulty accessing the data after logging in. I need to log in to the…
chmc
  • 265
  • 1
  • 5
  • 12
0
votes
1 answer

Bitcoind rpc AddLocal(ip:port) and Disover: IPv4 eth0: ip missing Amazon AWS CentOS

I have a server at DigitalOcean with Ubuntu installed and bitcoind with rpc which IS working. With my Amazon AWS CentOs server bitcoin-cli is working but not EasyBitcoin-PHP, it's returning 0: $bitcoin = new…
Marc Alexander
  • 761
  • 11
  • 24
0
votes
2 answers

LimeSurvey Remote Control - failing half way through import_survey

Currently using LimeSurvey Version 2.57.1+161205 I'm using the Remote Control API to upload LSS survey files on demand. I use 3 API calls: 'import_survey' 'activate_tokens' 'activate_survey' in that order. It's been working fine, but now I'm…
zetetic
  • 171
  • 1
  • 13
0
votes
1 answer

JSON-RPC - how can one make a unique ID?

When calling a JSON-RPC service what is the most common way to generate a unique ID from a JavaScript client? REVISED QUESTION: Typically, a JavaScript JSON-RPC client implements a counting id parameter (e.g. If the last request was id=1, and it…
orokusaki
  • 55,146
  • 59
  • 179
  • 257
0
votes
2 answers

LimeSurvey RemoteControl API failing in localhost in Macos Sierra

Currently using Version 2.57.1+161205 of Lime Survey. I recently got a new Macbook Pro laptop and set up my dev environment. Everything seems to be working except when I try to make JSON RPC calls to the LimeSurvey Remotecontrol API! It fails at…
zetetic
  • 171
  • 1
  • 13
0
votes
1 answer

PERL: When I add just the "use JSON::RPC::Client" to my script but not use it I get an error

So here is the import lines of my script...when I uncomment the JSON::RPC line I get the error listed below. I'm not even using the library in the script and still get the error listed below #!/usr/bin/perl -w use Data::Dumper; use…
BostonMacOSX
  • 1,369
  • 2
  • 17
  • 38
0
votes
1 answer

Should JSON-RPC return error upon bad response?

The client request was good, but the server response was bad. Should the client respond to the server that the response was invalid? If the reverse was true (i.e. server request is good, client request is bad), should the same approach be…
user1032531
  • 24,767
  • 68
  • 217
  • 387
0
votes
1 answer

What protocol is served from Express applications?

when I build an server using Node.js's Express, what protocol is used by default? REST? Json-RPC? SOAP? I see that there are modules for all three, which leads me to believe the answer to my question is none of them, but then what?
ekkis
  • 9,804
  • 13
  • 55
  • 105
0
votes
2 answers

Return data as json from odoo 9

I want get data in JSON format from odoo controllery.py Example: import openerp.http as http from openerp.http import request class MyController(http.Controller): @http.route('/test_html', type="http", auth="public") def some_html(self): …
Anastasia_
  • 289
  • 1
  • 3
  • 17
0
votes
1 answer

Kivy - Telenium: Error 111 while trying to connect a client

I'm trying to use Telenium to automate testing of a Kivy app. Per the README.md I've run my application with the Telenium module: python -m telenium.execute main.py Next I've tried to connect to this application using a client: >>> id =…
ScissorHill
  • 87
  • 1
  • 7
0
votes
0 answers

Authentication not working jsonrpc2 library

I keep getting 401 error when trying to access an api, the api requires a username and password which i have given. I'm using jsonrpc2 library to make this all work. Here is my code: App.java public class App { public static JSONRPC2Session…
HashTables
  • 392
  • 2
  • 7
  • 22
0
votes
2 answers

Encode strange characters which are unable to be sent to API Node JS

my name is Juraj Čarnogurský. Notice the Č character. I want to send my name from the one server to API. But my last name gets replaced with this "firstName":"Juraj","lastName":" arnogurský"}} which ruins the JSON…
durisvk
  • 927
  • 2
  • 12
  • 24