Skip to content

captureMessage on IE8 does not send message to Sentry #881

@Wilkolicious

Description

@Wilkolicious

Sentry 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions