You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been querying the Actor and Activity APIs for my instance of Learning Locker and seem to be getting back some unexpected errors.
I though at first that I'd constructed the queries incorrectly, but I've studied the spec and I've also looked at how a test tool provided by ADL works and I have confirmed that I'm not making any mistakes. As a final test I set up a free Rustici Scorm Cloud account so that I could compare what I get back from that to what I get back from Learning Locker. Here are the results (rest assured that the actor and activity IDs I'm using exist in the respective systems - I'm not looking for something that isn't there!):
response:
{
error: true
message: "Required parameter is missing - profileId"
code: 500
trace: "#0 /var/www/learninglocker/app/controllers/xapi/DocumentController.php(30): Controllers\xAPI\DocumentController->checkParams(Array, Array, Array) Remove all the hardcoded analytics / reporting #1
.... (more stack trace)
} - _INCORRECT_ This does not conform to the xAPI spec. There is no requirement for a profileId parameter to be associated with this xAPI request. Besides that, this shouldn't be returning a 500 error!
response:
{
error: true
message: "key() expects parameter 1 to be array, null given"
code: 500
trace: "#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'key() expects p...', '/var/www/learni...', 40, Array) Remove all the hardcoded analytics / reporting #1
.... (more stack trace)
} - _INCORRECT_ This does not conform to the xAPI spec. The activityId parameter does not need to be an array according to the xAPI specification. Making it an array simply returns a different error. Besides that, this shouldn't be returning a 500 error!
I've been querying the Actor and Activity APIs for my instance of Learning Locker and seem to be getting back some unexpected errors.
I though at first that I'd constructed the queries incorrectly, but I've studied the spec and I've also looked at how a test tool provided by ADL works and I have confirmed that I'm not making any mistakes. As a final test I set up a free Rustici Scorm Cloud account so that I could compare what I get back from that to what I get back from Learning Locker. Here are the results (rest assured that the actor and activity IDs I'm using exist in the respective systems - I'm not looking for something that isn't there!):
{
error: true
message: "Required parameter is missing - profileId"
code: 500
trace: "#0 /var/www/learninglocker/app/controllers/xapi/DocumentController.php(30): Controllers\xAPI\DocumentController->checkParams(Array, Array, Array) Remove all the hardcoded analytics / reporting #1
.... (more stack trace)
} - _INCORRECT_ This does not conform to the xAPI spec. There is no requirement for a profileId parameter to be associated with this xAPI request. Besides that, this shouldn't be returning a 500 error!
{
error: true
message: "key() expects parameter 1 to be array, null given"
code: 500
trace: "#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'key() expects p...', '/var/www/learni...', 40, Array) Remove all the hardcoded analytics / reporting #1
.... (more stack trace)
} - _INCORRECT_ This does not conform to the xAPI spec. The activityId parameter does not need to be an array according to the xAPI specification. Making it an array simply returns a different error. Besides that, this shouldn't be returning a 500 error!
Is this a bug in Learning Locker?