Picture of Tom Baum
adl-launch-server: actor not found
by Tom Baum - Thursday, 6 February 2020, 8:09 AM
 

Hello,

After I successfully managed to launch a course (adapt-contrib-xapi extension installed) with the basic authentication method (all parameters in the url) and send the statements to learning locker, I tried the same with with the adl-launch-server.

I successfully installed the example server from adl, created an account, logged in, uploaded the same course and tried to launch it.

The course is launched, but the LRS is not found. The debug information of firefox gives me a warning: adapt-contrib-xapi: "actor" attribute not found!

The URL of the launched course looks like:
http://172.100.0.200:3000/package/c594fea6-6754-4c42-83f4-0eaa1ab26a08/index.html?xAPILaunchKey=d3dd808d-8082-0f35-da17-0f4493a4d4ff&xAPILaunchService=172.100.0.200%3A3000%2F

I expected, that the actor attribute is provided by the launch-server itself (the logged-in user), but that seems not to be the case?

Where is my mistake?

Thanks in advance!

Picture of Ignacio Cinalli
Re: adl-launch-server: actor not found
by Ignacio Cinalli - Thursday, 6 February 2020, 6:45 PM
 

Hello Tom, edit config.json and set _endpoint to empty:

 "_xapi": {
        "_isEnabled"true,
        "_specification""xAPI",
        "_activityID""http://localhost:9001/xapi-adl-launch/",
        "_endpoint""",
        "_user""",
        "_password""",

 

Regards.

Picture of Tom Baum
Re: adl-launch-server: actor not found
by Tom Baum - Friday, 7 February 2020, 8:07 AM
 

Hello Ignacio,

 

thanks for your reply! Unfortunately it doesn't work. The error message 'actor not found' is gone, but replaced by another: ERROR: adapt-contrib-xapi: xAPI Wrapper initialisation failed TypeError: "172.100.0.200:3000/ is not a valid URL."

 

I wonder, why and where the http://-prefix I set is stripped off.

 

I also replaced the original xapiwrapper.min.js version with a newer one. But this also doesn't help.

 

 

Picture of Ignacio Cinalli
Re: adl-launch-server: actor not found
by Ignacio Cinalli - Friday, 7 February 2020, 1:25 PM
 

Check the config.json in your local xapi-launch app.
what value is in the variable host?

Picture of Tom Baum
Re: adl-launch-server: actor not found
by Tom Baum - Monday, 10 February 2020, 9:08 AM
 

Many thanks, that solved the problem!