Picture of Flavio Martins
Uncaught SyntaxError: Unexpected end of JSON input
by Flavio Martins - Wednesday, 3 May 2017, 7:49 PM
 

Hi guys!

I got an error when I uploaded a simple course in a LMS, it froze at the loading gif and my console reported this:


index_lms.html:1

Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.getCustomStates (adapt.min.js:8)
at Object.get (adapt.min.js:8)
at n.get (adapt.min.js:2)
at Object.onConfigLoaded (adapt.min.js:8)
at Object.<anonymous> (backbone.js:2)
at Object.<anonymous> (underscore.js:5)
at _ (backbone.js:2)
at m (backbone.js:2)
at f (backbone.js:2)

 

What it could be? My course works perfectly on scorm cloud an others too... I don't know if it could be an issue, but I read about missing JSON mime type seetings on server side. I'm clueless...

Picture of Ludovic Bas
Re: Uncaught SyntaxError: Unexpected end of JSON input
by Ludovic Bas - Thursday, 13 July 2017, 10:01 PM
 

It seems that I have the same problem when re-opening a course from a lms. Any clue?

Picture of Matt Leathes
Re: Uncaught SyntaxError: Unexpected end of JSON input
by Matt Leathes - Thursday, 13 July 2017, 11:00 PM
 

"When re-opening a course"? You mean it's fine the first time you open it but then doesn't work after that?

Picture of Ludovic Bas
Re: Uncaught SyntaxError: Unexpected end of JSON input
by Ludovic Bas - Friday, 14 July 2017, 7:59 AM
 

Yes, the first time I open it from the LMS, it's okay. I have completed the assessment, got my score, closed the course. But when I re-open it from the LMS: I have a blank screen and I can see this error.

PS: just tried again and now the course works again. I didn't see the bug again after few other try.