Closed
Description
When I test error logging from my browser console, using captureMessage works fine, meaning that the message is logged in Sentry:
try { throw new Error('what') } catch (e) { Raven.captureMessage(e.message) }
However, using captureException does not result in an error logged in Sentry:
try { throw new Error('what') } catch (e) { Raven.captureException(e) }
My config only contains the whitelistUrls.
Activity
dcramer commentedon Jul 25, 2015
I'm also seeing something that I have to assume is related:
Repro'd on 1.1.19, confirmed its a client issue.
The value sent to the server has the entire object of frames as a string value, thus Sentry discards the stacktrace.
(There are other issues with this as well, such as the Sentry event having "undefined" as the title when clearly it should be able to have a value since err.toString() works just fine)
dcramer commentedon Jul 25, 2015
Semi-unrelated: Raven.install docstring is wrong, and I should not have to Raven.install in order to capture exceptions.
Side note: TraceKit reporting needs removed and we should explicitly call into it with our own window.onerror. This is the fundamental reason for Raven.install() and end-users should not have to care about an API that doesnt make any sense here.
dcramer commentedon Jul 25, 2015
I'm still debugging this, as I was unable to make a test. So far all I know is stackInfo is empty when its parsed.
dcramer commentedon Jul 25, 2015
I've identified the problem and will get a patch up soon
peterlinnartz commentedon Aug 25, 2015
@dcramer Thanks for addressing this. Any way we can get a release with this fix?