-
Bug
-
Resolution: Fixed
-
Minor
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68871-master -
-
Moppies Kanban
I'm getting an "Invalid response value detected" error when calling the WS mod_h5pactivity_get_results. More details:
attempts => Invalid response value detected: duration => Invalid response value detected: Invalid external api response: the value is \"4 seconds\" of PHP type \"string\", the server was expecting \"int\" type
It seems the WS is returning the duration already formatted, but it should be returned as an integer.
EDIT: I tried setting the duration as a hardcoded integer and then another error is thrown:
attempts => Invalid response value detected: results => Invalid response value detected: options => Invalid response value detected: Error in response - Missing following required key in a single structure: correctanswer"}
I'm having these errors with a drag&drop type, I attached it to this issue.