Unable to post xAPI statement into a newly installed LL on Amazon EC2

998 views
Skip to first unread message

Nadav Kavalerchik

unread,
Jun 7, 2014, 5:47:07 PM6/7/14
to learnin...@googlegroups.com
Following the instructions on:
I have successfully installer a LL on an Amazon EC2 server.

Everything seems ok but...
When generating a statement on

{
    "actor": {
        "mbox": "mailto:myemailw...@gmail.com",
        "name": "First Last",
        "objectType": "Agent"
    },
    "verb": {
        "display": {
            "en-US": "completed"
        }
    },
    "object": {
        "objectType": "Activity",
        "definition": {
            "name": {
                "en-US": "Example Activity"
            },
            "description": {
                "en-US": "Example activity definition"
            }
        }
    }
}

And sending to over to my new LL, I get the following error message.

{"error":true,"message":"","code":404,"trace":[{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":1021,"function":"match","class":"Illuminate\\Routing\\RouteCollection","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":989,"function":"findRoute","class":"Illuminate\\Routing\\Router","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/Router.php","line":968,"function":"dispatchToRoute","class":"Illuminate\\Routing\\Router","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php","line":738,"function":"dispatch","class":"Illuminate\\Routing\\Router","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php","line":708,"function":"dispatch","class":"Illuminate\\Foundation\\Application","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/vendor\/asm89\/stack-cors\/src\/Asm89\/Stack\/Cors.php","line":51,"function":"handle","class":"Illuminate\\Foundation\\Application","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Http\/FrameGuard.php","line":38,"function":"handle","class":"Asm89\\Stack\\Cors","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Session\/Middleware.php","line":72,"function":"handle","class":"Illuminate\\Http\\FrameGuard","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Queue.php","line":47,"function":"handle","class":"Illuminate\\Session\\Middleware","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Cookie\/Guard.php","line":51,"function":"handle","class":"Illuminate\\Cookie\\Queue","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/stack\/builder\/src\/Stack\/StackedHttpKernel.php","line":23,"function":"handle","class":"Illuminate\\Cookie\\Guard","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}},1,true]},{"file":"\/var\/www\/learninglocker\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php","line":606,"function":"handle","class":"Stack\\StackedHttpKernel","type":"->","args":[{"attributes":{},"request":{},"query":{},"server":{},"files":{},"cookies":{},"headers":{}}]},{"file":"\/var\/www\/learninglocker\/public\/index.php","line":49,"function":"run","class":"Illuminate\\Foundation\\Application","type":"->","args":[]}]}

Not sure what's wrong with LL
Any ideas?

Nadav

Andrew Downes

unread,
Jun 8, 2014, 6:04:53 AM6/8/14
to learnin...@googlegroups.com
What endpoint are you using? Does it have a slash at the end?

Nadav Kavalerchik

unread,
Jun 8, 2014, 7:38:14 AM6/8/14
to Andrew Downes, learnin...@googlegroups.com
Yes :-) Of course :-)

This is my endpoint
http://learninglocker.moodlemagic.info/data/xAPI/
​(I can open a new admin user for you if you'd like)​


I am also using the demo endpoint
And while the Storyline Tincan package launches successfully from moodle (Your mod_launchtincan)
After it start to play (on a new browser tab) ​I am starting to get "400 errors"
Switching to WAXLRS, everything works fine.

​How do you suggest I debug it?​



On 8 June 2014 13:04, Andrew Downes <mrdo...@hotmail.com> wrote:
What endpoint are you using? Does it have a slash at the end?

--
You received this message because you are subscribed to a topic in the Google Groups "Learning Locker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/learning-locker/bAQtN8dTKWQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to learning-lock...@googlegroups.com.
To post to this group, send an email to learnin...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Downes

unread,
Jun 8, 2014, 8:20:34 AM6/8/14
to learnin...@googlegroups.com
Storyline uses a beta version of Tin Can (0.9) which learning locker doesn't support. Really articulate need to sort that out. Other authoring tools support 1.0.x.

For your hosted locker, I'll have a proper look at the error message later. It's quite hard to read on my phone.

Andrew

Nadav Kavalerchik

unread,
Jun 8, 2014, 9:07:22 AM6/8/14
to Andrew Downes, learnin...@googlegroups.com
Thanks!

What xAPI authoring tool do you recommend?
(Do you know of any open source xAPI authoring tools?)


Andrew Downes

unread,
Jun 8, 2014, 9:14:19 AM6/8/14
to learnin...@googlegroups.com
My company, LTG, makes an authoring tool called gomo, which of course is what I recommend ;-) Tin Can support is road mapped for October.

Both Captivate and Lectora have some Tin Can support and use 1.0.x.

Andrew

Nadav Kavalerchik

unread,
Jun 8, 2014, 9:49:23 AM6/8/14
to Andrew Downes, learnin...@googlegroups.com
Does Gomo support RTL (and Hebrew) ?



Andrew

Andrew Downes

unread,
Jun 8, 2014, 11:19:48 AM6/8/14
to learnin...@googlegroups.com
Good question. I'll find out.

Andrew Downes

unread,
Jun 8, 2014, 4:09:13 PM6/8/14
to learnin...@googlegroups.com
Hi,

I've had a look at the error and had a poke at your LRS and can't see anything obvious. 

When I try with the tool here: http://garemoko.github.io/tinStatement/tinstatement.htm I get 401 unauthorized, which is what I expect and suggests the end point is working. 

Can you set me up with a set of credentials and I'll poke it further?

Andrew

Nadav Kavalerchik

unread,
Jun 8, 2014, 4:22:16 PM6/8/14
to Andrew Downes, learnin...@googlegroups.com
Thank you for testing!

Sent you an invite for Super Admin :-)


--
You received this message because you are subscribed to a topic in the Google Groups "Learning Locker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/learning-locker/bAQtN8dTKWQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to learning-lock...@googlegroups.com.
To post to this group, send email to learnin...@googlegroups.com.

Andrew Downes

unread,
Jun 9, 2014, 3:29:22 PM6/9/14
to learnin...@googlegroups.com, mrdo...@hotmail.com
Found the problem. It turns out the generator at http://tincanapi.com/statement-generator/ needs the endpoint without the slash. 

Nadav Kavalerchik

unread,
Jun 9, 2014, 3:31:45 PM6/9/14
to Andrew Downes, learnin...@googlegroups.com
Bless you :-)


On 9 June 2014 22:29, Andrew Downes <mrdo...@hotmail.com> wrote:
Found the problem. It turns out the generator at http://tincanapi.com/statement-generator/ needs the endpoint without the slash. 

--
Reply all
Reply to author
Forward
0 new messages