Welcome to the LimeSurvey Community Forum

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

Error with remote control

  • davebostockgmail
  • davebostockgmail's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 5 months ago #208690 by davebostockgmail
Replied by davebostockgmail on topic Error with remote control
I can see the URL's but from other documentation I have seen there needs to be specific ports open for RCP to work ... As it was working before and not now this is where I will start the investigation.
The topic has been locked.
More
3 years 7 months ago #220650 by abbasi1
Replied by abbasi1 on topic Error with remote control
I am getting the exact same error when I try to copy a survey from a source survey. I am successfully activating the survey using the same session key.
The topic has been locked.
  • davebostockgmail
  • davebostockgmail's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 7 months ago #220651 by davebostockgmail
Replied by davebostockgmail on topic Error with remote control
Here is how I got around the API issue .. maybe it will be the same for you?

I had an issue with remote control via PHP .. not sure if it is the same with Python.

It turns out that the JSON RPC client does not work well with self certified SSL websites .. this meant that I could see the correct page at the Remote Control admin page but the act of interacting with the API would throw an error.

This took some time figure out as I tried everything I could think of including turning off all the Firewall rules to see if it was a data routing issue and going as far as to do a full reinstall of LimeSurvey to try to fix it.... it turns out that to correct my issue I had to add the following line into the jsonRPCClient.php file found in /application/libraries

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);

inserted at the section around line 158 in that file.

Once I added in this line of code then the Remote control worked as expected.

I have no idea why it doesnt like self certified SSL but I hope this helps as it was one of the things that was extremely frustrating
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose