issue while Launching the story line package from LMS
Jan 08, 2016
I need your help . Actually I am launching the storyline package from our LMS application after uploading it.
I am doing as follows.
Step 1) I am uploading the package in LMS.
Step 2) I have to save the status of the package in the database so I need to launch it from LMS only.
Step 3) I am creating the launch URl as follows
function OnLoad() {
var auth = 'Basic ' + Auth;
var endpoint = EndPoint; //this is the relative path of my rest service to save the status of the package in Database
var actor = { "mbox": ActorEmail, "name": ActorName };
var path = domain + PckagePath;
path = path + '/' + LaunchPage;
var link = path +
"?endpoint=" + encodeURIComponent(endpoint) +
"&auth=" + encodeURIComponent(auth) +
"&actor=" + encodeURIComponent(JSON.stringify(actor)) +
"®istration=" + encodeURIComponent(RegistrationKey) +
"&activity_id=" + ActivityID;
//assign the lesson link to ifreame
document.getElementById("lessonFrame").setAttribute('src', link);
}
Please tell me if I am missing something because it is giving some Incorrect JSON also there is some authorization issue
If you ask I can send you the package of mine for which I am trying to launch.
My full launch URL is like below :
http://localhost:38383/warehouse/2-2-0CEDB0A2B3325E50E946C0C8BD561A11-2016-01-05-01-37-21/story.html?endpoint=http://localhost:38383%2FxAPIStatementRESTService.svc%2F&auth=Basic%2080519be2-139a-4e1e-b99f-066a51967102%253aa870bb4c-a867-41d3-90f2-28e7f1b573ca&actor=%7B%22mbox%22%3A%22Tammy.Adkins%40nmhs.org%22%2C%22name%22%3A%22Adkins%2C%20Tammy%20%22%7D®istration=b17acdcc-6aba-44f4-b36f-510781c0e3b8&activity_id=http://6JTTMbEZ7nV_course_id
I have also tried by uploading the package at server which you have given like below but same issue:
6 Replies
Hi, Navneet -- So sorry to hear you are having difficulties with your course! Perhaps I am not understanding your question correctly, but can you please share if you are experiencing the same issue when you test your course on SCORM Cloud, as that is the recommended testing environment for LMS? You may also want to take a look at the following:
Troubleshooting LMS issues
How to Troubleshoot Your LMS with SCORM Cloud
Please let us know if that helps or if you still need more assistance!
No It is working correctly on scrom cloud and after taking the reference from there i want to launch the course from my own LMS so that we can save the status of the course in our database.
I am getting error like below attached file while my launch url is below:
http://localhost:38383/warehouse/2-2-0CEDB0A2B3325E50E946C0C8BD561A11-2016-01-05-01-37-21/story.html?endpoint=http%3A%2F%2Flocalhost%3A38383%2FxAPIStatementRESTService.svc%2F&auth=Basic%2080519be2-139a-4e1e-b99f-066a51967102%253aa870bb4c-a867-41d3-90f2-28e7f1b573ca&actor=%7B%22mbox%22%3A%22Tammy.Adkins%40nmhs.org%22%2C%22name%22%3A%22Adkins%2C%20Tammy%20%22%7D®istration=b17acdcc-6aba-44f4-b36f-510781c0e3b8&activity_id=http://6JTTMbEZ7nV_course_id
Hi, Navneet -- Thanks so much for the additional details and for sharing your screenshot! According to this, "you may encounter the following error when attempting to view Tin Can API content:
There are two possible causes for this message:
No Internet Access
This issue will occur when content doesn't have Internet access and is unable to communicate with the LMS. To resolve it, re-establish your Internet connection and click Retry.
The LMS Is Rejecting the Data
You'll also encounter this issue if the LMS rejects the data being sent by the content. Contact your LMS provider for a solution."
Actually i am a developer and i have been ask to create api which launches the package after uploading it just like scorm cloud so i have no separate LMS provide client have given a published package to me.
I am attaching the package please look after it and help me to create a correct Launch URl
Hi, Navneet -- Thanks for your response, but unfortunately, your request falls a bit outside of my wheelhouse. I will need to defer to the community to assist your further here, or you are also welcome to reach out to our Support Engineers for their input by using this form. :)
This discussion is closed. You can start a new discussion or contact Articulate Support.