Moodle for mobile

Invalid value respond detected - REST mod_quiz_get_quizzes_by_categories

 
Picture of Sufian Khairi Ahmad Maulana
Invalid value respond detected - REST mod_quiz_get_quizzes_by_categories
 

Hello,

I tried accesing data via Postman. Apparently i’m not gettjng  any data.


The error as per subject, appears when there are quiz data in a course. Before we added, courses were enroled by user was 0 and it was no problem to get the result of the transaction.


What can we do to address this issue

 
Average of ratings: -
Picture of Dani Palou
Re: Invalid value respond detected - REST mod_quiz_get_quizzes_by_categories
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Sufian,

are you able to debug the request using the browser development tools or Postman? If so you can follow this guide to get a better error message:

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

Kind regards,

Dani

 
Average of ratings: -
Picture of Sufian Khairi Ahmad Maulana
Re: Invalid value respond detected - REST mod_quiz_get_quizzes_by_categories
 

Yes I did manage to get more details from the link you gave.
But it doesn't make sense as the variable required says the following:

quizzes => Invalid response value detected: autosaveperiod => Invalid response value detected: Invalid external api response: the value is \"\", the server was expecting \"int\" type"


By right i should have return me a list of quiz, eventho i didn't specify any value to courseids[0].

How do I specify the value to this variable? I don't understand how to use this.

 
Average of ratings: -
Picture of Dani Palou
Re: Invalid value respond detected - REST mod_quiz_get_quizzes_by_categories
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

login as admin in Moodle and go to this page:

Site administration > Plugins > Activity modules > Quiz

In there you'll find a setting with name autosaveperiod. I guess that setting is empty in your site, it should contain a number (the default value is "1 minutes").

 
Average of ratings: -