Sourcemap are not working
Orlando
Posted on
Aug 04 2015
Hello,
We just implemented sources-maps in our application, we are using an external .map file with sourceMappingURL comment at the bottom of the .js file.
For example this file https://d1fnn4c7qqjz6e.cloudfront.net/assets/editrecurrence.38fb1aa0.js along with its map file https://d1fnn4c7qqjz6e.cloudfront.net/assets/editrecurrence.js.d8d11c0b.map
The problem is that errors still come with undefined column
If you guys can provide directions on how to make sourcemaps work with Raygun that would be great.
Thanks!
Alex
Posted on
Aug 04 2015
Hi Orlando,
It looks like the issue with the error you posted is actually related to a CORS issue. This means the file containing the JavaScript in which an error occurred is being served from a different domain than the web page without the correct cross origin resource sharing headers.
This blog post talks more about CORS issues and how to fix them: https://raygun.io/blog/2015/05/fix-script-error-and-get-the-most-data-possible-from-cross-domain-js-errors/
Let us know if you have any other questions about this issue or implementing source maps after resolving the CORS issue.
Best regards,
Alex
Orlando
Posted on
Aug 04 2015
Hello Alex,
I traced down the error and is not just CORS errors that give that message. We are seeing an error with an external dependency that tries to access to localstorage in IOS with private browsing enabled.
QUOTAEXCEEDEDERR:DOM Exception 22 is the error we are getting
I'll monitor for other errors to see if sourcemaps are working correctly. I'll open a new thread if they are not working for us.
Thanks for your help!
Orlando
Posted on
Aug 05 2015
We just got a JavaScript error today https://app.raygun.io/dashboard/c59xwu/errors/827922045. I clicked in process Re-process this error with SourceMaps is didn't produce better output.
Can you guys please help us to find what is wrong?
Thanks!
Orlando
Posted on
Aug 05 2015
Alex
Posted on
Aug 05 2015
Hi Orlando,
I've just send you an email regarding resolving this issue.
Cheers, Alex
fujiiface
Posted on
Aug 13 2015
Is there a reason the person was E-mailed instead of posting the solution in the forum? I am trying to get source maps working as well and it would be beneficial to everyone if we could see the solution. This is the second or third source map solution that has been privately E-mailed to the user. :(
Alex
Posted on
Aug 13 2015
Hi Fujiiface,
The reason source maps weren't working in this case was due to a file being mislabeled in the source map center, this caused our source mapper to retrieve the wrong file when attempting to create a mapped stack trace.
I replied to them personally because of the specific nature of the problem and I didn't want to mention details about some of their files and error instance data publicly. I'll try to post a summary of the problem and fix when possible in future.
I've just sent you an email regarding your issue, I'd be happy to post a summary here once things are resolved.
Best regards,
Alex