Sentry-react-native: throwOnImmutableMutation being hit when trying to send a message

Created on 15 May 2017  路  2Comments  路  Source: getsentry/sentry-react-native

Happening on iOS. Running react-native 0.42.3 and react-native-sentry 0.8.3

My index.os.js looks like this:

import { AppRegistry } from 'react-native';
import App from './App';

import {
  Sentry,
  SentrySeverity,
  SentryLog
} from 'react-native-sentry';

Sentry.config("[MY DSN HERE]", {
  // deactivateStacktraceMerging: true,
  logLevel: SentryLog.Debug
}).install();

AppRegistry.registerComponent('governedapp', () => App);

In my code, I'm attempting to send a message with:

      Sentry.captureMessage("My message", {
        level: SentrySeverity.Error
      });

but I'm getting this crash:
glass_and_iphone_7_ _ios_10_3__14e269_
(I blurred out the key value since I think it's specific to the firebase integration I'm running)

It looks like this is happening when trying to prepare a list of breadcrumbs to send with my message. Seems like a non-release build specific error as well.

js

Most helpful comment

Was able to workaround this by turning off xhr breadcrumbs:

Sentry.config("[DSN]", {
  logLevel: SentryLog.Debug,
  autoBreadcrumbs: {
    'xhr': false,
    'console': true,
    'dom': true,
    'location': true 
  }
}).install();

All 2 comments

Was able to workaround this by turning off xhr breadcrumbs:

Sentry.config("[DSN]", {
  logLevel: SentryLog.Debug,
  autoBreadcrumbs: {
    'xhr': false,
    'console': true,
    'dom': true,
    'location': true 
  }
}).install();

Fixed in v0.12.10

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brainbicycle picture brainbicycle  路  3Comments

ThomasLarge picture ThomasLarge  路  3Comments

juhaelee picture juhaelee  路  3Comments

dht picture dht  路  3Comments

hecontreraso picture hecontreraso  路  3Comments