Hello!
I’m running an on-premise sentry server in docker container (Sentry 8.10.0). We have a webapp built in webpack which in the end has a bundle-[hash].min.js and a bundle-[hash].min.js.map file. I created a new release with sentry-cli:
sentry-cli releases new a3494cd0a6043b80388e4521165b77acd0bdb5e5
and then uploaded assets:
sentry-cli releases files a3494cd0a6043b80388e4521165b77acd0bdb5e5 upload-sourcemaps dist/
It uploads 2 files:
- ~/assets/bundle-05ed754f62e885e7b062.min.js
- ~/assets/bundle-05ed754f62e885e7b062.min.js.map
When deploying the project only the JS file is uploaded since we can not publish the sourcemap. JS file is publicly accessible at https://example.com/assets/bundle-05ed754f62e885e7b062.min.js
On the web-interface the new release appears and artifacts are visible too.
In the HTML raven is initialized like this:
Raven.config('https://571be8ea728c416a955775e5bdb90545@sentry.****.hu/2', { release: "a3494cd0a6043b80388e4521165b77acd0bdb5e5", environment: "staging" } ).install()
After receiving an error Sentry displays stack trace like this:
And for some reason it wants to download the sourcemap:
Sourcemap is referenced in JS code like this:
//# sourceMappingURL=bundle-05ed754f62e885e7b062.min.js.map
When source map was uploaded previously(for testing) Sentry was able to show the sourcemapped stack trace.(probably it downloaded it but it means sourcemapping works)
I even tried to upload sourcemaps with url-prefixes like this:
Results were same, no sourcemapped stack traces
$ sentry-cli releases list
gives me:
Where I don’t know what “[unreleased]” means… Maybe that’s the problem
Could you please help me find out the solution?
Thanks in advance!