troubleshooting - Author API

Troubleshooting

Tips and error codes for troubleshooting the Author API

Author API will log error occurrences to the JavaScript console of the browser. These errors can be checked by the following command in the console: LearnosityAuthor.errors.

Author API error codes

Error Message for users Message for developers
Error code: 10000 An error has occurred
Error code: 10001 A configuration error has occurred on the server
Error code: 20000 Missing mandatory parameter(s)
Error code: 20001 Invalid parameter length
Error code: 20002 Too many parameters passed
Error code: 20003 Invalid parameter type
Error code: 20004 Invalid parameter value
Error code: 20005 Invalid header value
Error code: 20009 JSON failed to validate against schema
Error code: 20010 XML failed to validate against schema
Error code: 20011 Conflict
Error code: 20012 Not Found
Error code: 20013 Item not found in database
Error code: 20014 Tag not found
Error code: 20015 Tag type not found
Error code: 20016 Session not found
Error code: 20017 Dynamic content data missing or incomplete
Error code: 20018 Error in Adaptive algorithm
Error code: 30000 Duplicate entry in database
Error code: 30001 Database value missing
Error code: 30002 Items in Activities need to be published
Error code: 30003 Items in Activities need to be unique
Error code: 30004 Failed to select cache database for use
Error code: 40000 Access denied
Error code: 40001 Method not allowed
Error code: 40002 Consumer is not associated with an organisation
Error code: 40003 Consumer does not have sufficient access rights to current organisation
Error code: 41000 Missing security parameters
Error code: 41001 Invalid parameter length Ensure that your Consumer Key and Consumer Secret are correct as per those provided by Learnosity.
Error code: 41002 Not a valid consumer Ensure that your Consumer Key is correct as per those provided by Learnosity.
Error code: 41003 Signatures do not match Ensure that your Consumer Key and secret and domain are correct as per those provided by Learnosity, and ensure that your signature generation matches that provided in the Quick Start (SDK) or Security and Authentication section.
Error code: 41004 Timestamp out of valid range Ensure that your timestamp is within a 3 hour period of current UTC Time.
Error code: 41005 Invalid domain
Error code: 41006 Expired parameter must be a GMT date of format YYYYMMDD-HHMM
Error code: 41007 Request after the expire timestamp
Error code: 42000 Too many requests
Error code: 42001 This endpoint is no longer available
Error code: 43000 Requested version is lower than consumer minimum
Error code: 44000 Unrecognised dataset_type
Error code: 50000 Report Dataset is missing some required data
Error code: 50100 Report Dataset job is missing some required internal state
Error Message for users
Error code: 10001
Error validating options
Error code: 10002
Error calling public method
Error code: 10003
Question JSON error
Error code: 10004
Error building columns
Error code: 10005
Error accessing Learnosity Questions API
Error code: 10006
Missing DOM hook
Error code: 10007
Fetch Activity Exception
Error code: 10008
Invalid Layout Exception

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
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.