You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling Sentry.config() with an undefined dsn, it will crash with the Unhandled JS Exception: undefined is not an object (evaluating 'e.construct.... It is not an issue in debug configuration, since it is easy to read the stacktrace, but in release configuration it is a bit cryptic, since the backtrace is totally minified and it is hard to know where it comes from:
Unhandled JS Exception: undefined is not an object (evaluating 'e.construct..., stack:
config@307:921
<unknown>@305:6588
d@2:755
<unknown>@12:55
d@2:755
n@2:326
global code@939:8
I was able to narrow it down to the call to config()here by using a stack beautifier. (I spent some time trying to figure out why my build failed on TestFlight...).
It is rather easy to fix, we could just check for null and undefined too.
Steps to reproduce: Sentry.config(undefined, {}).install()
Actual result: Unhandled JS Exception: undefined is not an object (evaluating 'dsn.construct...
Expected result: Sentry: A DSN must be provided
The text was updated successfully, but these errors were encountered:
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Config:
I have following issue:
When calling
Sentry.config()
with an undefineddsn
, it will crash with theUnhandled JS Exception: undefined is not an object (evaluating 'e.construct...
. It is not an issue in debug configuration, since it is easy to read the stacktrace, but in release configuration it is a bit cryptic, since the backtrace is totally minified and it is hard to know where it comes from:I was able to narrow it down to the call to
config()
here by using a stack beautifier. (I spent some time trying to figure out why my build failed on TestFlight...).It is rather easy to fix, we could just check for
null
andundefined
too.Steps to reproduce:
Sentry.config(undefined, {}).install()
Actual result:
Unhandled JS Exception: undefined is not an object (evaluating 'dsn.construct...
Expected result:
Sentry: A DSN must be provided
The text was updated successfully, but these errors were encountered: