Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/wasm
SDK Version
7.53.1
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
- Setup @sentry/wasm integration.
- Init wasm with a blob url returned by
URL.createObjectURL().
- Open the site with browser, and trigger a sentry event.
Expected Result
The event is reported to Sentry.
Actual Result
Browser throws an error TypeError: Failed to construct 'URL': Invalid URL.
I think it's caused by:
|
debug_file: debugFile ? new URL(debugFile, url).href : null, |
Passing a blob:http://xxxx to new URL() is not legal.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/wasm
SDK Version
7.53.1
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
URL.createObjectURL().Expected Result
The event is reported to Sentry.
Actual Result
Browser throws an error
TypeError: Failed to construct 'URL': Invalid URL.I think it's caused by:
sentry-javascript/packages/wasm/src/registry.ts
Line 52 in 8482c0a
Passing a
blob:http://xxxxtonew URL()is not legal.