View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
07758Bug reportsRemoteControlpublic2013-04-23 16:31
Reportermlhess Assigned Tosammousa  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.05 RC 
Summary07758: Remote API fails
Description

Remote API does not work.
So in trying to export all the surveys I run this code.

define( 'LS_BASEURL', 'http://192.168.10.37/surveysoft/'); // adjust
this one to your actual LimeSurvey URL
define( 'LS_USER', 'XXX' );
define( 'LS_PASSWORD', 'XXX' );
$survey_id = 76352;
$myJSONRPCClient = new jsonRPCClient(
LS_BASEURL.'index.php/admin/remotecontrol' );
$sessionKey= $myJSONRPCClient->get_session_key( LS_USER, LS_PASSWORD );
$data = $myJSONRPCClient->export_responses($sessionKey,$survey_id,'csv');

var_dump($data);

and it tells me

PHP Fatal error: Uncaught exception 'Exception' with message
'Incorrect response id (request id: 1, response id: )' in
/var/www/jsonRPCClient.php:152
Stack trace:
#0 /var/www/test.php(10): jsonRPCClient->__call('export_response...', Array)
#1 /var/www/test.php(10):
jsonRPCClient->export_responses('ejrp28vju8ueexx...', 76352, 'pdf')
#2 {main}
thrown in /var/www/jsonRPCClient.php on line 152

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)130406
I will donate to the project if issue is resolvedNo
BrowserNA
Database type & versionmysql
Server OS (if known)ubuntu
Webserver software & version (if known)apache 2
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

sammousa

sammousa

2013-04-11 10:54

reporter   ~24935

Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=12258

sammousa

sammousa

2013-04-11 10:55

reporter   ~24936

Seemed to be an issue in the BigData library; fixed it.

Related Changesets

LimeSurvey: 2.05 a0e95ba0

2013-04-11 08:54:28

sammousa

Details Diff
Dev Fixed issue 07758: Remote API fails Affected Issues
07758
mod - application/libraries/BigData.php Diff File

Issue History

Date Modified Username Field Change
2013-04-10 19:46 mlhess New Issue
2013-04-10 19:57 sammousa Assigned To => sammousa
2013-04-10 19:57 sammousa Status new => assigned
2013-04-11 10:54 sammousa Changeset attached => LimeSurvey 2.05 a0e95ba0
2013-04-11 10:54 sammousa Note Added: 24935
2013-04-11 10:54 sammousa Resolution open => fixed
2013-04-11 10:55 sammousa Note Added: 24936
2013-04-11 10:55 sammousa Status assigned => resolved
2013-04-11 10:55 sammousa Product Version 2.00+ => 2.05 RC
2013-04-23 16:31 c_schmitz Status resolved => closed