Environment Details
BB10 OS Version 10.0.9.388
BB10 WebWorks SDK 1.0.2.9
My app also uses jQuery 1.8.1 and bbUI 0.9.4
Error Details
At application startup, the following error is thrown from line 1178 of webworks 1.0.2.9.js
Uncaught SyntaxError: Unexpected end of input
request = new XMLHttpRequest();
request.open("GET", "http://localhost:8472/extensions/get/?hash=" + wwInfo.hash + "&version=" + wwInfo.version, true);
request.onreadystatechange = function () {
if (request.readyState === 4) {
resp = JSON.parse(decodeURIComponent(request.responseText));
/* Uncaught SyntaxError: Unexpected end of input gets thrown here */
if (request.status === 412) {
//Application Webworks.js does not match framework, display error to user.
alert(resp.msg);
} else if (request.status === 200) {
builder.build(resp.data).into(window);
//At this point all of the APIs should be built into the window object
//Fire the webworks ready event
_webworksReady = true;
fireWebworksReadyEvent();
}
}
};
request.send(null);
This is caused by the fact that request.responseText is an empty string, since the page below produces the same error.
The problem could be corrected with an empty string check or a try/catch but I'm also wondering if there's something wrong with my config.xml. For reference, here are my index.html and config.xml.
Environment Details BB10 OS Version 10.0.9.388 BB10 WebWorks SDK 1.0.2.9 My app also uses jQuery 1.8.1 and bbUI 0.9.4
Error Details At application startup, the following error is thrown from line 1178 of webworks 1.0.2.9.js
Uncaught SyntaxError: Unexpected end of input
This is caused by the fact that request.responseText is an empty string, since the page below produces the same error.
The problem could be corrected with an empty string check or a try/catch but I'm also wondering if there's something wrong with my config.xml. For reference, here are my index.html and config.xml.
index.html
config.xml