Sourcemaps not appearing in raygun
Dan Sargeant
Posted on
Sep 02 2014
Hi,
We have implemented sourcemaps in our application but they do not seem to be making any difference to the errors in raygun - we still see no line numbers or code snippets. We are using a version 1.9.2 of raygunjs and the sourcemaps are working correctly in the developer tools of chrome.
For example, the sourcefile is at:
http://swarm.find.ly/combres.axd/siteJs/-886009429/
which has the sourcemap comment at the end of the file:
//# sourceMappingURL=/js/siteJs.js.map
which leads to the sourcemap file:
http://swarm.find.ly/js/siteJs.js.map
Can you tell me why we are not seeing line numbers in our error reports?
Thanks
jeremy
Raygun
Posted on
Sep 03 2014
Hi Dan,
Ive looked into this and tracked this down to an issue at our end in retrieving the map file, so without this we are unable to apply the translation correction. I will be looking at getting a fix up for this shortly so I will update the thread again once this has been resolved.
Jeremy
Dan Sargeant
Posted on
Sep 03 2014
Great, thanks.
jeremy
Raygun
Posted on
Sep 05 2014
Hi Dan,
We have put a fix for this now so Ill be keeping an eye out to see if this resolves the issue for you. Let me know if you think this is still not working after you see a few more errors come through which should have been decoded.
Jeremy
Dan Sargeant
Posted on
Sep 09 2014
Hi Jeremy,
We are still not seeing sourcemaps for errors that I would expect to see them for. In particular, the invalid argument error (464639428) is one we are very keen to track down.
Thanks
Dan
jeremy
Raygun
Posted on
Sep 09 2014
Hi Dan,
Do they have a column number defined? Mapping only occurs if we have at least one stack frame with a line and column and a valid map file available. If you can email me at jeremy at mindscape.co.nz with a link to a specific occurrence I can have a check for you.
Kind regards,
Jeremy
Dan Sargeant
Posted on
Sep 09 2014
Ok, I see. They have a line number but no column defined which explains the lack of sourcemaps (see below)
Under what circumstances would you get a line number but no column? This issue we are trying to track down occurs often for our clients but we are unable to reproduce it ourselves so we were hoping sourcemaps would pinpoint where it occurs and shed some light on to why.
Invalid argument.
at ? line 1, column undefined (http://swarm.find.ly/combres.axd/refer/-1918199816/:1)
at ? line null, column null (null:null)
at ? line null, column null (null:null)
jeremy
Raygun
Posted on
Sep 12 2014
Hi Dan,
This will normally be because the error is being raised by a browser which does not provide column information as part of the error (e.g. Internet Explorer 8 or older versions of Firefox).
Jeremy
Dan Sargeant
Posted on
Sep 12 2014
Understood. Thanks for all your help with this.