oyshan
October 2, 2017, 9:44am
1
Hi!
I’ve set up Sentry to upload source map files with the tilde prefix.
The URL of the application looks like this:
https://host.com/datasetname/appname/appmode/
The minified main.js file has the following sourceMappingURL:
//# sourceMappingURL=main.1424801c0c03f5a423f5.map
I’ve uploaded the source map file with the following name:
~/appmode/main.1424801c0c03f5a423f5.map
But when opening an issue in Sentry, I get the following error:
HTTP returned 404 response on https://host.com/datasetname/datasetname/appname/appmode/main.1424801c0c03f5a423f5.map
What have I done wrong? Shouldn’t this work with tilde (~) ?
You need the full path so it should be ~/datasetname/appname/appmode/main.1424801c0c03f5a423f5.map
The ~
only removes host and protocol.
Actually so if the 404 is on https://host.com/datasetname/datasetname/appname/appmode/main.1424801c0c03f5a423f5.map
then you need ~/datasetname/datasetname/appname/appmode/main.1424801c0c03f5a423f5.map
oyshan
October 3, 2017, 6:41am
3
Thanks for your reply.
We use the same source code in multiple applications and for multiple datasets, i.e. the dataset name varies, but the source code does not. I.e. we use the same source code (and artifacts) for these URLs:
https://host1.com/datasetForHost1A/appname/appmode/
https://host1.com/datasetForHost1B/appname/appmode/
https://host2.com/datasetForHost2/appname/appmode/
We want the applications running in these URLs to report to the same Sentry project, and we want to upload source map files only once, as it’s the same for all. It’s not a possibility to create a Sentry project (or upload artifacts) for each data set name.
Do you have any suggested workaround for this? Why isn’t there a wildcard artifact matching? E.g.
*main.1424801c0c03f5a423f5.map