Weird issue when calling remotecontrol with JSON RPC on Macos

More
5 months 3 weeks ago #153296 by 1366482
1366482 created the topic: Weird issue when calling remotecontrol with JSON RPC on Macos
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 getting the session key from Lime Survey (let alone anything else).
It just pauses for a bit then returns an error saying it is unable to connect to the server.
If I open a browser tab and type in lime.app/admin/remotecontrol (lime.app is my vhost pointing to my limesurvey installation) -- I get the list of available API functions etc
But when I try to use the functions through the RPC client (I'm using weberhofer/jsonrpcphp), I get the error.
As a test, I tried to get a session key from an online instance of LimeSurvey (its in a test server). That works perfectly.
But when I'm trying to do the same call locally, it fails each time.
Is there something that needs to be set in the Mac to allow this type of call??

Please Log in to join the conversation.

More
5 months 3 weeks ago #153369 by 1366482
1366482 replied the topic: Weird issue when calling remotecontrol with JSON RPC on Macos
I didn't work out if this was just a Mac issue, but I seem to have resolved the problem.

I'm using the JSON RPC client from github.com/weberhofer/jsonrpcphp
On a whim I thought I'd try a different client, so I decided to use github.com/fguillot/JsonRPC instead.

Strange thing is, it works!! I have no idea why the previous client would no longer work.

Please Log in to join the conversation.

More
5 months 3 weeks ago #153383 by Ben_V
Ben_V replied the topic: Weird issue when calling remotecontrol with JSON RPC on Macos
Hi, good to hear you've solved your issue...

Actually, it could be hard to find the good jsonrpc client.

For me Httpful is the most of the time Ok with a valuable advantage: can work without composer...
github.com/nategood/httpful

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now