Source Maps not Loading for JS Blobs

For authentication reasons, the majority of the JS in my page is loaded as a blob (it needs to be downloaded from an authenticated endpoint).

I’ve been through the source map troubleshooting documentation and everything seems to match up, but I’m still not getting source maps in Sentry for JS in blobs and I get this error in the event view:

Source code was not found for blob:https://<snip>.com/adc0ef4a-06ef-4b32-adc1-7a9785d6e112

The comment in the JS blob is:

//# sourceMappingURL=~/static/js/app-d8fdc1ad954d4267ba0a.js.map

This exactly matches the URL on the 2nd row of the artifacts list:

Any ideas what I might be doing wrong here?

It looks like your web server serves your static files at a root url.
“https://.com/adc0ef4a-06ef-4b32-adc1-7a9785d6e112”
Is your build process copying those down, or the routing configured to where it retrieves those static files from?

Either move the static routing, or when you upload assets to Sentry, just point it at ~/bundle-name.js

That’s not what’s happening at all. It’s a blob URL.

Hey @CaptObvious, old thread I know, but did you ever find a solution for this problem? I have the same issue.