JavaScript Stacktrace doesn't want to upload .js files
LordotU
Posted on
Feb 05 2015
Hello!
There is a stacktrace screenshot from my dashboard: https://screencloud.net/v/jXcL. Why there is no code around errored line? My .js files should be public available.
Also, I've aploaded requireConf.js to the Application JS Center and there is no result too.
Thanks.
Callum
Posted on
Feb 06 2015
The first thing to check is that your source map config is set up correctly - this can be done by using the sourcemap validator tool listed at https://raygun.io/docs/workflow/source-maps. Let us know the result of this and we'll take a further look.
LordotU
Posted on
Feb 06 2015
Sorry for stupid question, but how Raygun trying to match min-map-source files? For example, I try to explain how I imagine that:
- I have 3 files: http://myhost.com/js/app.js, http://myhost.com/js/app.map.js, http://myhost.com/js/src/app.js;
- Physically on server I have only 1 of them - http://myhost.com/js/app.js which contains //# sourceMappingURL=http://myhost.com/js/app.map.js (app.map.js doesn't exist on my server);
- In source map (http://myhost.com/js/app.map.js) I have "file":"app.js" and "sourceRoot":"http://myhost.com/js/src";
- I upload all of them to Raygun with urls (http://myhost.com/js/app.js, http://myhost.com/js/app.map.js, http://myhost.com/js/src/app.js);
- When Raygun trying process stacktrace from http://myhost.com/js/app.js it should match //# sourceMappingURL to the http://myhost.com/js/app.map.js in JS Source Center, then it should match "file":"app.js" and "sourceRoot":"http://myhost.com/js/src" to the source ulr in JS Source Center and show processed stacktrace.
Does it right or not?
Thanks.
Alex
Posted on
Feb 09 2015
Hi LordotU,
That's absolutely correct.
Feel free to send me an email at alex@mindscape.co.nz if you have any trouble getting things working.
Best regards, Alex