Sentry DSN not detected
So I was redoing how I start the Sentry extension, to use
enableIfDSN
instead of doing the null check myself, and I noticed the Sentry extension was failing to initialize, and reverted it and it is still failing. So I don't know if this could have been caused by the latest changes? My bot is unable to start now if a Sentry DSN is set.
I put a breakpoint in SentryAdapter.init
and I can see that the DSN is available:
Then on Sentry.java
, line 187, there is a applyOptionsConfiguration
function, it takes optionsConfiguration
(which still has the settings there) and options
, which is empty.
In the next call, init(options, globalHubMode)
, options is still empty. And this is causing the error:
Reverted to 1.7.0-SNAPSHOT made it work again. Even tried to upgrade to 1.8.0-SNAPSHOT again to see if the dependency change would make it refresh, but no 🙃


5 Replies
if I'm reading this right, this seems like a bug Sentry introduced?
there's a new version, I'll bump it
Yeah, the issue seems to be in Sentry
Solution
I've pushed, should be up in 10-15 mins, hopefully it works
That did it!
\o/
weird bug, that
thanks for the report