Troubleshooting
Tips and error codes for troubleshooting the Reports API
Reports API will log error occurrences to the JavaScript console of the browser. These errors can be checked by the following command in the console: LearnosityReports.errors
.
Reports API error codes
Error | Message for users | Suggested Solution |
---|---|---|
Error code: 10001 |
Failed validating report / format error | The report JSON may be malformed. |
Error code: 10002 |
Failed to get report data | Ensure that data for this report actually exists - i.e. the session or user has submitted an assessment. |
Error code: 10003 |
Report type not supported | Invalid report type. |
Error code: 10004 |
Report element not found | Ensure there is a valid span for this report. |
Error code: 10005 |
No responses found for this session. | The test was submitted with no responses. |
Error code: 10006 |
Unable to render report | An internal error has occurred. It has been logged and Learnosity is probably already looking into it. |
Error code: 10007 |
Failed loading Reports API, can't load required modules | An internal error has occurred. It has been logged and Learnosity is probably already looking into it. |
Error code: 10008 |
Internal Reports API error | An internal error has occurred. It has been logged and Learnosity is probably already looking into it. |
Error code: 10009 |
Report configuration option not supported | Verify your init options against the options available for this report. See https://reference.learnosity.com/reports-api/reporttypes.
See Report Types for more info. |
Questions API error codes
The error codes below can affect the assessment in the following ways:
- Global UI Error - this is a fatal error that will stop the Learnosity app from working and is not recoverable. Users will see an error message printed out on the screen explaining the error. They will have to try loading the assessment again or report the issue.
- Question UI Error - this is a fatal error that only applies to an individual problematic Question instance. Other Question instances are not affected and will continue to work as expected.
- Alert Only - this is a recoverable error where the user can retry their last action before the error occured. For example, failing to save due to no network connectivity.
Error | Message for users | Error type |
---|---|---|
Error code: 10001 |
Failed validating activity / format error | Global UI Error |
Error code: 10002 |
Response id conflict | Global UI Error |
Error code: 10003 |
Failed authentication | Global UI Error |
Error code: 10004 |
Submit / save responses failed | Alert Only |
Error code: 10005 |
Response not found | Question UI Error |
Error code: 10006 |
Audio save to server failed | Alert Only |
Error code: 10007 |
Authorisation failed | Question UI Error |
Error code: 10008 |
Audio asset failed to load | Alert Only |
Error code: 10009 |
Audio asset temporarily not available | Alert Only |
Error code: 10010 |
Audio asset expired | Question UI Error |
Error code: 10011 |
Your device does not support audio-capture functionality | Alert Only |
Error code: 10012 |
No microphone found | Alert Only |
Error code: 10013 |
Unable to save, question validation failed | Alert Only |
Error code: 10014 |
Audio asset format not supported | Alert Only |
Error code: 10015 |
Browser not supported | Global UI Error |
Error code: 10016 |
Failed capturing questions | Global UI Error |
Error code: 10017 |
Failed loading Questions API, can't load required modules | Alert Only |
Error code: 10018 |
Browser running in an unsupported compatibility view | Global UI Error |
Error code: 10019 |
Failed validating math | Alert Only |
Error code: 10020 |
Failed validating appended elements | Alert Only |
Error code: 10021 |
Discard responses failed | Alert Only |
Error code: 10022 |
Audio playback failed | Alert Only |
Error code: 10023 |
Unable to render latex | Alert Only |
Error code: 10024 |
Failed loading external resource | Alert Only |
Error code: 10025 |
Failed resuming activity, network connectivity error | Alert Only |
Error code: 10026 |
Cannot set response metadata on empty response | Alert Only |
Error code: 10027 |
Failed pushing offline data to server | Alert Only |
Error code: 10028 |
Called needs pushing with incorrect parameters | Alert Only |
Error code: 10029 |
Asset could not be uploaded | Alert Only |
Error code: 10030 |
Error in third-party adaptive backend | Alert Only |
Error code: 10031 |
Public method called with invalid arguments | Alert Only |
Error code: 10032 |
Public method was called on an app stub that was initialized without an activity object | Alert Only |