Tincan API not working. Story.js not loading.
Jun 28, 2017
Hi,
I've been playing around with Storyline (360 and 3, latest versions) and created a simple multi-slide course to test out the Tincan publishing functionality. I published the course locally as HTML5 to my hard drive with Tincan enabled and followed instructions to generate the proper launch URL with endpoint set etc.
However after using my extensive software dev experience and two days I still cannot figure out why, when I run through the course, it does not even attempt to send statements to the LRS. As part of the debugging I noticed that the browser never attempts to load the story.js file where all the Tincan methods seem to live. When I try to enable debug mode the browser gives the following error:
"tincandebug.js:4 Uncaught ReferenceError: SendTinCanStatement is not defined"
What may cause the story.js file not to load? I searched all files and cannot even find the script tag for its inclusion which makes me wonder whether there is an actual bug in the published content.
5 Replies
Sounds like your browser is disabling javascript when loading local content. Host the published output on a web server.
I thought that might be the case but the rest of the JS files get loaded in properly and the course functions exactly as intended so the only thing that's not working is the Tincan bit.
Hi Vadim,
Have you tried uploading it to SCORM Cloud as a testing method? That would also help you see how it's behaving outside your local environment or standard LMS. This article will walk you through uploading and testing at SCORM Cloud.
Thank you. That was helpful.
The course worked as expected in SCORM Cloud. It looks like there was some strange issue related to loading content locally (as Brian alluded to above). After having uploaded the content onto S3 I can now see statements being published to the specified LRS endpoint.
Happy to hear that Vadim and thanks for the update!
This discussion is closed. You can start a new discussion or contact Articulate Support.