We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How are you running Sentry?
Saas (sentry.io)
When an error happens in as script with a blob: URL, its source maps doesn't get associated, and error below is shown.
blob:
URL for which the issue happened
But this file ends with
//# sourceMappingURL=bundle.js.map
And bundle.js.map has been uploaded to the artifacts:
bundle.js.map
@CaptObvious described the same issue as me here https://forum.sentry.io/t/source-maps-not-loading-for-js-blobs/3736
You can use the script below to use a script from a blob: URL. Just replace blobScript with a minified script and upload its sourcemap.
blobScript
const blobScript = `console.log(\'Hello world!\'); throw new Error('Triggering sentry'); //# sourceMappingURL=bundle.js.map `; const blob = new Blob([blobScript]); const url = URL.createObjectURL(blob); const script = document.createElement('script'); script.setAttribute('src', url); document.body.appendChild(script);
The same behavior as when the script is loaded with a normal URL: being able to see the error in the context of the original source.
The text was updated successfully, but these errors were encountered:
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!
Status: Accepted
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Sorry, something went wrong.
I'm experiencing this a lot with mobile browsers
No branches or pull requests
Important Details
How are you running Sentry?
Saas (sentry.io)
Description
When an error happens in as script with a
blob:
URL, its source maps doesn't get associated, and error below is shown.URL for which the issue happened
But this file ends with
//# sourceMappingURL=bundle.js.map
And
bundle.js.map
has been uploaded to the artifacts:@CaptObvious described the same issue as me here https://forum.sentry.io/t/source-maps-not-loading-for-js-blobs/3736
Steps to Reproduce
You can use the script below to use a script from a
blob:
URL. Just replaceblobScript
with a minified script and upload its sourcemap.What you expected to happen
The same behavior as when the script is loaded with a normal URL: being able to see the error in the context of the original source.
The text was updated successfully, but these errors were encountered: