captureMessage on IE8 does not send message to Sentry
See original GitHub issueSentry version: 3.12.1
(self-hosted).
OS & browser: Windows 7 & IE8
Performing Raven.captureMessage('Any string');
from within our window.onerror
.
Managed to capture the exception message for this:
Object doesn't support this property or method
Additionally, the events ravenSuccess
and ravenError
are not triggered, even with the workaround below.
Raven is configured and installed as per the docs, and works for the other browsers (barring IE7).
Since it’s a bit of a catch 22 trying to debug IE8, I used alerts to narrow down the line where it fails: -
Line 1714
request.send(stringify(opts.data));
and more specifically, the stringify
function is failing.
Directly sending JSON.stringify(opts.data)
works.
Apologies if this issue tone is a bit staccato, but any fix is appreciated!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Troubleshooting for Next.js - Sentry Documentation
Capturing Resource 404s By default, Sentry does not capture errors when a resource (like an image or a css file) fails to load....
Read more >Troubleshooting for Cordova - Sentry Documentation
You can view the JSON payload of an event to see how Sentry stores additional data in the event. The shape of the...
Read more >In using captureMessage in Sentry, how do I choose the type ...
I have been going through the doc here, but it seems like I can't make the message type to be of non error....
Read more >How to use the @sentry/node.captureMessage function ... - Snyk
Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately. ... no-console console.error(message); } if...
Read more >raven-js Documentation
being sent to Sentry as either regular expressions or strings. Does not affect captureMessage or when non-error object is passed in as ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, @LewisJEllis corrected me on this yesterday – our example test page “intentionally” has
whitelistUrls
set to reject the error. I did not see an exception thrown because it was suppressed.Core issue boils down to json-stringify-safe using
Array.prototype.indexOf
(see isaacs/json-stringify-safe/issues/6), while IE8 only hasString.prototype.indexOf
. We’re going to vendor in the json-stringify-safe dependency and modify it to avoid this.