Welcome to the LimeSurvey Community Forum

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

remotecontrol doesn't work after update to 5.3

More
7 months 3 weeks ago #230754 by migliorati
Please help us help you and fill where relevant:
Your LimeSurvey version:5.3
Own server or LimeSurvey hosting: own server
Survey theme/template: remotecontrol (API)
==================
Hi guys.
We updated limesurvey from 3 to 5.3, and now API seem not working: when I try (I'm working in R with limer package) a
get_session_key()
now I obtain an error:
Error: Argument 'txt' must be a JSON string, URL or file.
Everything was running before the update.
Please, someone can help me?
TX a lot

Please Log in to join the conversation.

More
7 months 3 weeks ago #230817 by migliorati
Please, refer to #230772

Please Log in to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks ago #230994 by Haris.Pap

Please, refer to #230772



 
Here is the post mentioned above , but its solution seems mainly related to the R limer package.

I am experiencing a similar issue, where get_session_key results to 500 Internal Server Error:

PHP Fatal error:  Uncaught Exception:
Unable to connect to .../admin/remotecontrol in /var/www/.../application/libraries/jsonRPCClient.php:146
Stack trace:
#0 /var/www/.../requests/export_responses.php(17): jsonRPCClient->__call()
#1 {main}
thrown in /var/www/.../application/libraries/jsonRPCClient.php on line 146,
referer: https://.../index.php/786859


While this works perfectly with LimeSurvey Version 5.3.24+220711 on localhost, it won't work on our production-site (using the exact same version).

(Note: The url, user and pass above are edited for privacy reasons)

Since ...
  • the API-related settings and request-URL are correct (as described in this previous post )
  • the username and password belong to a normal registered user
  • the login uses the auth_db (internal database authentication) method
... what else might be wrong?

Thx in advance !


 
Attachments:
Last edit: 7 months 2 weeks ago by Haris.Pap.

Please Log in to join the conversation.

More
7 months 2 weeks ago #231008 by tammo
For us this works:

library(limer) 
options(lime_api = ' yourdomain.nl/index.php/admin/remotecontrol ')

options(lime_username = 'report')
options(lime_password = 'password')
session_key <- get_session_key()


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

More
7 months 2 weeks ago #231010 by Haris.Pap
Thanks. So, probably the answer is that remotecontrol works after the 5.3 update.

To rephrase my question above , could someone point me to the configuration(s), which cause the API to return a 500 Internal Server Error?
(while using the same code & LimeSurvey settings and version, it works locally - using a XAMPP server)

Thx!

Please Log in to join the conversation.

More
7 months 1 week ago #231011 by tammo
Sorry, cannot help you here, we never used your way of working.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose