1
votes

I look after an application based on XPages that some users are having trouble with. There is a random Javascript error on some of the pages that only resolves itself when the pages are reloaded. I managed to get a screen shot of the error message on Internet Explorer - it's the warning triangle you see when there's a JS error.

Clicking on the message in IE, I am told there is a syntax error in the following URL:

http://cdncache2-a.akamaihd.net/loaders/1036/l.js?aoi=1311798366&pid=1036&zoneid=74570

I have no idea what this is?! It's not a resource that is linked to on my application. The XPage app is on an internal company server, runs fine for me but users in Germany regularly get this.

I tried to find out about the URL but haven't found anything solid on google yet. Some sites hint at Proxies however. So I checked my IE settings for LAN and found I am not using a proxy, and the option to bypass a proxy for LAN addresses is greyed out. I got the people in Germany to confirm they also have the same setting as me.

Can anyone give any clues as to why this JS error is coming up on the application?

1
sounds like the proxy execute this js code for all websites and that this is used to cache pages in the proxy to avoid unneccesary http request to the internet. it could be that there is something wrong with the js code or that the code is not compatible with the xpages code. - Thomas Adrian
Thanks for the input. The application is correctly being recognised in IE as a Locla Intranet application and the users, like me don't have a proxy server specified - asummers
The script looks pretty cool! It injects a lot of interesting stuff f.e. advertisment, embeds flash files, has geolocation features and does much more with the current HTML page - Sven Hasselbach
Yeah I could see it does some interesting stuff, but why would an xpage that has no mention of this fail to load properly when this file has a syntax error in it? We didn't include the file in the XPage application - asummers
Maybe a browser addon? Do you have a clean computer with a clean browser to check if this script is added? - Sven Hasselbach

1 Answers

1
votes

The tool you want to use is CURL. Using that you get the source code of the JS that gets loaded. If the code messes up the DOM then local JavaScript will fail. I would second Sven's suspicion that it is an addon. The question is: a planned or an unplanned one. You might want to entertain a HTTP Debugger to see what is going on on the wire. TCPMon from Apache is free and cross platform. Fiddler is free but Windows only and Charles is Shareware cross platform. The later two can debug HTTPS too. Let us know the findings