Moodle for mobile

"Invalid response value detected"

 
Picture of Brian Sorrell
Re: "Invalid response value detected"
 

Update:

I'm able to load the course listing when I hide one of my courses. Clearly, something is amiss with that course, but the error doesn't indicate what. Any guidance on figuring out what's wrong would be appreciated.

 
Average of ratings: -
Picture of Péter Lukács
Re: "Invalid response value detected"
 
Dear Brian, you can always set debug level to "Developer" to get more debug messages (at Site administration -> Development -> Debugging). After this is set repeat the steps leading to the error, and check your server log files.
To be honest, copiing server 1 database and files to server 2 isnt make a 1:1 copy if your server environments are different. Compare your apache (or other http daemon) and php versions and configs.
 
Average of ratings: -
Picture of Péter Lukács
Re: "Invalid response value detected"
 

I join to your subject. I receive the same error message, but only when i want to see Notifications in mobile app. This is the server log:

[:error] stderr: PHP message: Default exception handler: Missing parameter (token) Debug: 
[:error] stderr: PHP message: Default exception handler: Missing parameter (token) Debug:
[:error] stderr: Error code: missingparam
[:error] stderr: Error code: missingparam
[:error] stderr: * line 482 of /lib/setuplib.php: moodle_exception thrown
[:error] stderr: * line 482 of /lib/setuplib.php: moodle_exception thrown
[:error] stderr: * line 573 of /lib/moodlelib.php: call to print_error()
[:error] stderr: * line 573 of /lib/moodlelib.php: call to print_error()
[:error] stderr: * line 45 of /webservice/pluginfile.php: call to required_param()
[:error] stderr: * line 45 of /webservice/pluginfile.php: call to required_param()



I using 3.5.1 mobile app on a Moodle 3.5.1+ (Build: 20180713).

I tested this on an older Moodle site (3.3.2+ (Build: 20171027)) without any error messages.

Any suggestions are welcome sad


 
Average of ratings: -
Picture of Péter Lukács
Re: "Invalid response value detected"
 

Dear Brian,

I think our problems exists because of unset capabilities. I created a new ordiary user (student) and its working with him without any error messages.


To narrow it down follow these instructions:

https://docs.moodle.org/dev/Moodle_Mobile_debugging_WS_requests


ws requests debug info from chrome:


Request:

Form Data
useridto: 3
useridfrom: 0
type: notifications
read: 0
newestfirst: 1
limitfrom: 0
limitnum: 20
moodlewssettingfilter: true
moodlewssettingfileurl: true
wsfunction: core_message_get_messages
wstoken:(censored)

Response:

{exception: "invalid_response_exception", errorcode: "invalidresponse",…}
errorcode:"invalidresponse"
exception:"invalid_response_exception"
message:"Érvénytelen válaszérték"
I hope some developers can dig something out from this.

 
Average of ratings: -