Public bug reported: Happens periodically for demo.mahara.org website ... Could be setting, wrong code, or data in DB ...
I send this request: https://demo.mahara.org/webservice/rest/server.php?alt=json Payload: {"wsfunction":"module_mobileapi_sync","wstoken":"df4d82a11d311116f95cb65c4a59fa47","blogs":{},"folders":{},"notifications":{"lastsync":0},"tags":{},"userprofile":{},"userprofileicon":{}} And get the following response: { "error": true, "error_number": 500, "error_name": "invalidextresponse", "error_class": "WebserviceParameterException", "error_message": " : notifications ( : notifications (Invalid response : Only arrays accepted.))", "error_rendered": " : notifications ( : notifications (Invalid response : Only arrays accepted.))" } Expected result: I believe I shouldn't be getting an error from webserver. .... It looks like htdocs/module/mobileapi/webservice/functions/module_mobileapi_sync.php ln 328. Variable $activity_arr is not an array as required by the WS.... So "get_records_sql_array function doesn't return an array"... (but I might be wrong) ** Affects: mahara Importance: Undecided Status: New ** Tags: mahara mobile webservices -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/1656151 Title: WS response problems on demo.mahara.org website Status in Mahara: New Bug description: Happens periodically for demo.mahara.org website ... Could be setting, wrong code, or data in DB ... I send this request: https://demo.mahara.org/webservice/rest/server.php?alt=json Payload: {"wsfunction":"module_mobileapi_sync","wstoken":"df4d82a11d311116f95cb65c4a59fa47","blogs":{},"folders":{},"notifications":{"lastsync":0},"tags":{},"userprofile":{},"userprofileicon":{}} And get the following response: { "error": true, "error_number": 500, "error_name": "invalidextresponse", "error_class": "WebserviceParameterException", "error_message": " : notifications ( : notifications (Invalid response : Only arrays accepted.))", "error_rendered": " : notifications ( : notifications (Invalid response : Only arrays accepted.))" } Expected result: I believe I shouldn't be getting an error from webserver. .... It looks like htdocs/module/mobileapi/webservice/functions/module_mobileapi_sync.php ln 328. Variable $activity_arr is not an array as required by the WS.... So "get_records_sql_array function doesn't return an array"... (but I might be wrong) To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1656151/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

