Hi we are really struggling to get source maps working correctly in Sentry I feel like I’ve followed the instructions to the letter but they still aren’t working. Hopefully someone here can help.
We are uploading assets to releases ahead of time via the rest API with name="~/app-1.js.map" the map file is 10.2mb we are also uploading the js file with name="~/app-1.js"
The map files are not publicly available.
This still doesn’t seem to work as I would have expected it to and I don’t see proper files/line numbers in Sentry.
Note: I also tried setting sourceMappingURL=~/app-1.js.map just in case that might work but it didn’t seem to make any difference
Ah so its not able to scrape your source at all here.
The problem is the filename is app-blahblahblah.js, and the releases mechanism will look for that exact filename. If you upload using the same pattern you’ll see everything magically fall into place.
If the value is literally ~/app-c3eaf76b66baedc7d145.js it should be fine. We basically look for (filename, release) in the local store, and we trim the domain if ~ is set. It’s possible there’s an issue with the tilde operator, but I’m not entirely sure what it could be.
Is this on sentry.io? If so do you mind dropping me a link to the issue?
Thanks! Will dig more, and update this (as well as the ticket) once we sort it out. It does appear as if something is wrong on our end in this situation, as at first glance everything is what I’d expect it to be.
Hi guys, any update on this issue? We are having this exact problem in our project, and it seems that we are uploading and naming artifacts the correct way. We can provide more information or open another thread if necessary.
@aserrabl generally there should be some kind of error indicator showing if the sourcemap header or annotation is present. Are you not seeing anything? Its an expandable note at the top of the issue details.
Here’s the sourceMappingURL
(New user so can’t upload images, putting the url to the images here)
/uploads/sentry/original/1X/9b93cd1316a19bbde8996595b8fbfd3894c05477.png
And client.js, client.js.map on the disk
/uploads/sentry/original/1X/8034447500f0f28241793181be451199c6113fd9.png
The issue in Sentry:
/uploads/sentry/original/1X/50b1706df8027f44b7217515566166a8912af105.png
And the artifacts with/without the url prefix:
/uploads/sentry/original/1X/ab1a328166a9fcd9d95393218449116e1f3169b9.png
/uploads/sentry/original/1X/057301eb4701adf3056aad4271c66d13464eac82.png