Hey there,
I got a self-hosted sentry running with docker (8.19.0) to which I’m trying to upload sources and sourcemaps. Somehow I just can’t get this running.
Example:
Via sentry-cli I uploaded my .js-files and the sourcemaps with
sentry-cli --log-level=debug --url https://mysentry.api --auth-token=MY_TOKEN releases -o MY_ORGANIZATION -p MY_PROJECT files MY_RELEASE_NAME upload-sourcemaps dist/ --url-prefix https://domain.azurewebsites.net --validate
Validation puts out the following:
2017-09-04T09:26:41.5526822Z Source Map Upload Report
2017-09-04T09:26:41.5526822Z Minified Scripts
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js (sourcemap at https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map)
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js (sourcemap at https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map)
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js (sourcemap at https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map)
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js (sourcemap at https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map)
2017-09-04T09:26:41.5526822Z Source Maps
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/styles.b64f5e16586c7e4f8eb3.bundle.css.map
2017-09-04T09:26:41.5526822Z https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map
In Project > Releases > XY > Artifacts I got
https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js
https://domain.azurewebsites.net/inline.b85de7d175238138143a.bundle.js.map
https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js
https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map
https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js
https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js.map
https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js
https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js.map
In my main.29efd6db971d978b4658.bundle.js I got
//# sourceMappingURL=https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js.map
Now when I trigger an error to my release I get the following errors:
There were 3 errors encountered while processing this event
Source code was not found for https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js
{
"url": "https://domain.azurewebsites.net/polyfills.e6af80caefd7b5feeb47.bundle.js"
}
Source code was not found for https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js
{
"url": "https://domain.azurewebsites.net/vendor.0e439278cd110ec09e62.bundle.js"
}
Source code was not found for https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js
{
"url": "https://domain.azurewebsites.net/main.29efd6db971d978b4658.bundle.js"
}
Even though the url can be opened directly in the browser AND the artifact names match exalcty
I have disabled Enable JavaScript source fetching
because I don’t want my sourcemaps be public available.
Any ideas on this one? Is there a way to get more information about the errors that occur?