Skip to content

Actor and Activity APIs return errors #503

@paulnebel

Description

@paulnebel

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!):

  • Agent API
    • Rustici Scorm Cloud
      • request: {my Scorm Cloud Endpoint}/agents?agent={"name":"Joe Bloggs","mbox":"mailto:joe@bloggs.com","objectType":"Agent"}
      • response: {"name":["Joe Bloggs"],"mbox":["mailto:joe@bloggs.com"],"objectType":"Person"} - _CORRECT_
    • Learning Locker
      • request: {my Learning Locker Endpoint}/agents?agent={"name":"Joe Bloggs","mbox":"mailto:joe@bloggs.com","objectType":"Agent"}
      • 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!
  • Activity API

Is this a bug in Learning Locker?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions