- Posts: 2
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
7 years 1 week ago #153296
by 1366482
Weird issue when calling remotecontrol with JSON RPC on Macos was created 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??
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
7 years 1 week ago #153369
by 1366482
Replied by 1366482 on 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.
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.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1128
- Thank you received: 329
7 years 1 week ago #153383
by Ben_V
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)
Replied by Ben_V on 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
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.