Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Weird issue when calling remotecontrol with JSON RPC on Macos

  • 1366482
  • 1366482's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #153296 by 1366482
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??
The topic has been locked.
  • 1366482
  • 1366482's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 11 months ago #153369 by 1366482
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.
The topic has been locked.
More
6 years 11 months ago #153383 by Ben_V
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)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose