Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source code was not found even after source map uploaded #1190

Closed
5 of 11 tasks
seyedasfar opened this issue Nov 16, 2020 · 3 comments
Closed
5 of 11 tasks

Source code was not found even after source map uploaded #1190

seyedasfar opened this issue Nov 16, 2020 · 3 comments

Comments

@seyedasfar
Copy link

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: 2.0.0

react-native version: 0.63.3

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

Link to issue

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn:
    '###',
  environment: process.env.NODE_ENV,
  enableAutoSessionTracking: true,
  release: `${DeviceInfo.getBundleId()}-${DeviceInfo.getVersion()}`, // com.helloapp-0.0.2
  dist: DeviceInfo.getBuildNumber(), // 4
  debug: true,
});

I have following issue:
Source code was not found error on the dashboard even after source map is available

Steps to reproduce:

  • Step 1: React native init & setup @sentry/react-native
  • Step 2: Configured Sentry
import * as Sentry from '@sentry/react-native';
import DeviceInfo from 'react-native-device-info';

Sentry.init({
  dsn:
    '###',
  environment: process.env.NODE_ENV,
  enableAutoSessionTracking: true,
  release: `${DeviceInfo.getBundleId()}-${DeviceInfo.getVersion()}`,
  dist: DeviceInfo.getBuildNumber(),
  debug: true,
});
  • Step 3: Build React Native app yarn run android
  • Step 4: Start the app yarn run start
  • Step 5: Create a bundle folder mkdir bundle
  • Step 6: Bundle the app
react-native bundle \
    --platform android \
    --dev false \
    --entry-file index.js \
    --assets-dest bundle \
    --bundle-output bundle/index.android.bundle \
    --sourcemap-output  bundle/index.android.bundle.map
  • Step 7: Upload source map
node_modules/@sentry/cli/bin/sentry-cli  releases --org fivoto --project react-native  files com.helloapp-0.0.2 upload-sourcemaps --dist 4 --strip-prefix . --rewrite ./bundle

Screenshot from 2020-11-16 13-46-42

  • Step 8: Trigger an error
...
  const _sendErrro = () => {
    try {
      var e = helo;
      throw e;
    } catch (error) {
      Sentry.captureException(error);
    }
  };

....
  <Button onPress={_sendErrro}> Throw Error</Button>
...

Actual result:
Screenshot from 2020-11-16 13-43-59

@jennmueng
Copy link
Member

On first glance, the stack trace already looks unminified and doesn't need a sourcemap. This looks like an error from a development build which should already be unminified. In the error above, it says it's looking for an index.js bundle while the bundles you've uploaded are index.android.bundle which is why it's saying sourcemap not found.

Can you paste the event's JSON for me so I can give a closer look, and also try it in a release build?

@seyedasfar
Copy link
Author

That's was in the development environment and I build my application and try the same way again and still, the same Source code was not found with two different messages.

Screenshot from 2020-11-18 21-37-23

Link to issue

{"event_id":"9cd4106532f641d6b4b2d7adfce2b4ba","project":5519270,"release":"app@staging","dist":"1","platform":"javascript","message":"","datetime":"2020-11-18T16:03:42.752000Z","tags":[["device","SM-J710F"],["device.family","SM-J710F"],["environment","staging"],["event.origin","javascript"],["handled","yes"],["level","error"],["mechanism","generic"],["os","Android 8.1.0"],["os.name","Android"],["os.rooted","no"],["dist","1"],["release","app@staging"],["user","id:f07c0044c37f90aa"]],"_meta":{"unknown":{"":{"err":["invalid_attribute"]}}},"_metrics":{"bytes.ingested.event":4275,"flag.processing.error":true,"bytes.stored.event":37693},"breadcrumbs":{"values":[{"category":"xhr","timestamp":1605715422.717,"type":"http","data":{"url":"http://65.0.81.244","status_code":502.0,"method":"POST"},"level":"info"},{"category":"app.lifecycle","timestamp":1605715421.634,"type":"session","data":{"state":"start"},"level":"info"},{"category":"app.lifecycle","timestamp":1605715421.637,"type":"navigation","data":{"state":"foreground"},"level":"info"},{"category":"xhr","timestamp":1605715422.721,"type":"http","data":{"url":"http://65.0.81.244","status_code":"502","method":"POST"},"level":"info"}]},"contexts":{"device":{"screen_resolution":"1280x720","orientation":"portrait","family":"SM-J710F","battery_level":100.0,"screen_dpi":320,"memory_size":1908858880,"timezone":"Asia/Colombo","id":"f07c0044c37f90aa","connection_type":"wifi","battery_temperature":30.7,"screen_width_pixels":720,"low_memory":false,"simulator":false,"screen_height_pixels":1280,"free_memory":582258688,"online":true,"screen_density":2.0,"type":"device","charging":true,"model_id":"M1AJQ","brand":"samsung","storage_size":11816611840,"boot_time":"2020-11-10T14:15:55.976Z","arch":"armeabi-v7a","manufacturer":"samsung","name":"Galaxy J7 (2016)","language":"en_GB","free_storage":5034045440,"model":"SM-J710F","archs":["armeabi-v7a","armeabi"]},"app":{"app_identifier":"com.vertission.fivoto","app_name":"Fivoto","app_start_time":"2020-11-18T16:03:41.613Z","app_version":"1.0","type":"app","app_build":"1"},"os":{"rooted":false,"kernel_version":"3.18.14-14721103","version":"8.1.0","build":"M1AJQ.J710FXXU5CRK6","type":"os","name":"Android"}},"culprit":"parse([native code])","environment":"staging","errors":[{"type":"invalid_attribute","name":"unknown"},{"url":"FileObserver.java","type":"js_no_source"},{"url":"Thread.java","type":"js_no_source"}],"exception":{"values":[{"stacktrace":{"frames":[{"function":"value","abs_path":"[native code]","in_app":true,"filename":"[native code]"},{"function":"value","abs_path":"[native code]","in_app":true,"filename":"[native code]"},{"function":"value","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","pre_context":["","    return this.flushedQueue();","  }","","  flushedQueue(): null | [Array<number>, Array<number>, Array<any>, number] {"],"post_context":["      this.__callImmediates();","    });","","    const queue = this._queue;","    this._queue = [[], [], [], this._callID];"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","lineno":134,"colno":10,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"    this.__guard(() => {"},{"function":"__guard","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","pre_context":["  __guard(fn: () => void) {","    if (this.__shouldPauseOnThrow()) {","      fn();","    } else {","      try {"],"post_context":["      } catch (error) {","        ErrorUtils.reportFatalError(error);","      }","    }","  }"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","lineno":364,"colno":9,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"        fn();"},{"function":"fn","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","pre_context":["    return this.flushedQueue();","  }","","  flushedQueue(): null | [Array<number>, Array<number>, Array<any>, number] {","    this.__guard(() => {"],"post_context":["    });","","    const queue = this._queue;","    this._queue = [[], [], [], this._callID];","    return queue[0].length ? queue : null;"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","lineno":135,"colno":12,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"      this.__callImmediates();"},{"function":"__callImmediates","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","pre_context":["  }","","  __callImmediates() {","    Systrace.beginEvent('JSTimers.callImmediates()');","    if (this._immediatesCallback != null) {"],"post_context":["    }","    Systrace.endEvent();","  }","","  __callFunction(module: string, method: string, args: any[]): void {"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","lineno":387,"colno":12,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"      this._immediatesCallback();"},{"function":"_immediatesCallback","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","pre_context":["   * This is called after we execute any command we receive from native but","   * before we hand control back to native.","   */","  callImmediates() {","    errors = (null: ?Array<Error>);"],"post_context":["    if (errors) {","      errors.forEach(error =>","        JSTimers.setTimeout(() => {","          throw error;","        }, 0),"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","lineno":441,"colno":12,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"    while (_callImmediatesPass()) {}"},{"function":"_callImmediatesPass","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","pre_context":["  immediates = [];","","  // Use for loop rather than forEach as per @vjeux's advice","  // https://github.com/facebook/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051","  for (let i = 0; i < passImmediates.length; ++i) {"],"post_context":["  }","","  if (__DEV__) {","    Systrace.endEvent();","  }"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","lineno":181,"colno":5,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"    _callTimer(passImmediates[i], 0);"},{"function":"_callTimer","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","pre_context":["    if (","      type === 'setTimeout' ||","      type === 'setInterval' ||","      type === 'setImmediate'","    ) {"],"post_context":["    } else if (type === 'requestAnimationFrame') {","      callback(performanceNow());","    } else if (type === 'requestIdleCallback') {","      callback({","        timeRemaining: function() {"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","lineno":130,"colno":7,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"      callback();"},{"function":"callback","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core.js","pre_context":["      } else {","        reject(deferred.promise, self._W);","      }","      return;","    }"],"post_context":["    if (ret === IS_ERROR) {","      reject(deferred.promise, LAST_ERROR);","    } else {","      resolve(deferred.promise, ret);","    }"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core.js","lineno":123,"colno":15,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"    var ret = tryCallOne(cb, self._W);"},{"function":"tryCallOne","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core.js","pre_context":["  }","}","","function tryCallOne(fn, a) {","  try {"],"post_context":["  } catch (ex) {","    LAST_ERROR = ex;","    return IS_ERROR;","  }","}"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/promise/setimmediate/core.js","lineno":37,"colno":12,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"    return fn(a);"},{"function":"fn","abs_path":"app:///home/chawki/Documents/fivoto/fivoto/node_modules/ts-invariant/lib/invariant.js","pre_context":["} : _a;","var InvariantError = /** @class */ (function (_super) {","    tslib.__extends(InvariantError, _super);","    function InvariantError(message) {","        if (message === void 0) { message = genericMessage; }"],"post_context":["            ? genericMessage + \": \" + message + \" (see https://github.com/apollographql/invariant-packages)\"","            : message) || this;","        _this.framesToPop = 1;","        _this.name = genericMessage;","        setPrototypeOf(_this, InvariantError.prototype);"],"module":"home/chawki/Documents/fivoto/fivoto/node_modules/ts-invariant/lib/invariant","filename":"/home/chawki/Documents/fivoto/fivoto/node_modules/ts-invariant/lib/invariant.js","lineno":16,"colno":58,"in_app":false,"data":{"sourcemap":"app:///index.android.bundle.map"},"context_line":"        var _this = _super.call(this, typeof message === \"number\""},{"function":"parse","abs_path":"[native code]","in_app":true,"filename":"[native code]"}]},"type":"ServerParseError","raw_stacktrace":{"frames":[{"function":"value","abs_path":"[native code]","in_app":true,"filename":"[native code]"},{"function":"value","abs_path":"[native code]","in_app":true,"filename":"[native code]"},{"function":"value","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],l=!0,f=!1,u=void 0 {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(n){if(\"string\"==typeof n)return t(n,o);var c=Object.prototype.toString. {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,t){(null==t||t>n.length)&&(t=n.length);for(var l=0,o=new Array(t);l<t;l++)o[l]=n[l];return  {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be  {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c){return n(c)||t(c)||o(c)||u()}},22,[23,24,17,25]);","__d(function(g,r,i,a,m,e,d){var n=r(d[0]);m.exports=function(t){if(Array.isArray(t))return n(t)}},23,[18]);","__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}},24,[]);","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be itera {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,o){if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\")}},26,[]);"],"filename":"app:///index.android.bundle","lineno":27,"colno":1065,"in_app":false,"context_line":"{snip} key:\"flushedQueue\",value:function(){var t=this;this.__guard(function(){t.__callImmediates()});var l=this._queue;return this._queue=[[],[],[] {snip}"},{"function":"value","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],l=!0,f=!1,u=void 0 {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(n){if(\"string\"==typeof n)return t(n,o);var c=Object.prototype.toString. {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,t){(null==t||t>n.length)&&(t=n.length);for(var l=0,o=new Array(t);l<t;l++)o[l]=n[l];return  {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be  {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c){return n(c)||t(c)||o(c)||u()}},22,[23,24,17,25]);","__d(function(g,r,i,a,m,e,d){var n=r(d[0]);m.exports=function(t){if(Array.isArray(t))return n(t)}},23,[18]);","__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}},24,[]);","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be itera {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,o){if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\")}},26,[]);"],"filename":"app:///index.android.bundle","lineno":27,"colno":2611,"in_app":false,"context_line":"{snip} e:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){s.reportFatalError(t)}}},{key:\"__shouldPauseOnThrow\",value:function() {snip}"},{"abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],l=!0,f=!1,u=void 0 {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(n){if(\"string\"==typeof n)return t(n,o);var c=Object.prototype.toString. {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,t){(null==t||t>n.length)&&(t=n.length);for(var l=0,o=new Array(t);l<t;l++)o[l]=n[l];return  {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be  {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c){return n(c)||t(c)||o(c)||u()}},22,[23,24,17,25]);","__d(function(g,r,i,a,m,e,d){var n=r(d[0]);m.exports=function(t){if(Array.isArray(t))return n(t)}},23,[18]);","__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}},24,[]);","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be itera {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,o){if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\")}},26,[]);"],"filename":"app:///index.android.bundle","lineno":27,"colno":1095,"in_app":false,"context_line":"{snip} ion(){var t=this;this.__guard(function(){t.__callImmediates()});var l=this._queue;return this._queue=[[],[],[],this._callID],l[0].length?l:n {snip}"},{"function":"value","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(t)){var o=[],l=!0,f=!1,u=void 0 {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]);m.exports=function(n,o){if(n){if(\"string\"==typeof n)return t(n,o);var c=Object.prototype.toString. {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,t){(null==t||t>n.length)&&(t=n.length);for(var l=0,o=new Array(t);l<t;l++)o[l]=n[l];return  {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be  {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){var n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]);m.exports=function(c){return n(c)||t(c)||o(c)||u()}},22,[23,24,17,25]);","__d(function(g,r,i,a,m,e,d){var n=r(d[0]);m.exports=function(t){if(Array.isArray(t))return n(t)}},23,[18]);","__d(function(g,r,i,a,m,e,d){m.exports=function(n){if(\"undefined\"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}},24,[]);","__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be itera {snip}","__d(function(g,r,i,a,m,e,d){m.exports=function(n,o){if(!(n instanceof o))throw new TypeError(\"Cannot call a class as a function\")}},26,[]);"],"filename":"app:///index.android.bundle","lineno":27,"colno":2919,"in_app":false,"context_line":"{snip} '),null!=this._immediatesCallback&&this._immediatesCallback(),n.endEvent()}},{key:\"__callFunction\",value:function(t,l,u){this._lastFlush=Dat {snip}"},{"function":"callImmediates","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){'use strict';function n(){}var t=null,o={};function u(n){try{return n.then}catch(n){return t=n,o}}function f(n,u {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arg {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.res {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[1 {snip}","__d(function(g,r,i,a,m,e,d){'use strict';if(!g.RN$Bridgeless){var l=r(d[0]).polyfillGlobal,t=function(t){l(t,function(){return r(d[1])[t]})} {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var u=t(r(d[1])).ge {snip}","__d(function(g,r,i,a,m,e,d){\"use strict\";var n,t=r(d[0]);n=t.now?function(){return t.now()}:function(){return Date.now()},m.exports=n},126,[127]);","__d(function(g,r,i,a,m,e,d){'use strict';var n;r(d[0]).canUseDOM&&(n=window.performance||window.msPerformance||window.webkitPerformance),m.e {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=!('undefined'==typeof window||!window.document||!window.document.createElement),t={canUseDOM: {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).polyfillGlobal;n('XMLHttpRequest',function(){return r(d[1])}),n('FormData',function() {snip}"],"filename":"app:///index.android.bundle","lineno":130,"colno":2887,"in_app":false,"context_line":"{snip} on(){throw t},0)})}},callImmediates:function(){for(b=null;k(););b&&b.forEach(function(t){return O.setTimeout(function(){throw t},0)})},emitT {snip}"},{"function":"k","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){'use strict';function n(){}var t=null,o={};function u(n){try{return n.then}catch(n){return t=n,o}}function f(n,u {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arg {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.res {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[1 {snip}","__d(function(g,r,i,a,m,e,d){'use strict';if(!g.RN$Bridgeless){var l=r(d[0]).polyfillGlobal,t=function(t){l(t,function(){return r(d[1])[t]})} {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var u=t(r(d[1])).ge {snip}","__d(function(g,r,i,a,m,e,d){\"use strict\";var n,t=r(d[0]);n=t.now?function(){return t.now()}:function(){return Date.now()},m.exports=n},126,[127]);","__d(function(g,r,i,a,m,e,d){'use strict';var n;r(d[0]).canUseDOM&&(n=window.performance||window.msPerformance||window.webkitPerformance),m.e {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=!('undefined'==typeof window||!window.document||!window.document.createElement),t={canUseDOM: {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).polyfillGlobal;n('XMLHttpRequest',function(){return r(d[1])}),n('FormData',function() {snip}"],"filename":"app:///index.android.bundle","lineno":130,"colno":830,"in_app":false,"context_line":"{snip} h.length)return!1;var t=h;h=[];for(var n=0;n<t.length;++n)C(t[n],0);return h.length>0}function q(t){v[t]=null,f[t]=null,s[t]=null}function A {snip}"},{"function":"C","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){'use strict';function n(){}var t=null,o={};function u(n){try{return n.then}catch(n){return t=n,o}}function f(n,u {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arg {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.res {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[1 {snip}","__d(function(g,r,i,a,m,e,d){'use strict';if(!g.RN$Bridgeless){var l=r(d[0]).polyfillGlobal,t=function(t){l(t,function(){return r(d[1])[t]})} {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var u=t(r(d[1])).ge {snip}","__d(function(g,r,i,a,m,e,d){\"use strict\";var n,t=r(d[0]);n=t.now?function(){return t.now()}:function(){return Date.now()},m.exports=n},126,[127]);","__d(function(g,r,i,a,m,e,d){'use strict';var n;r(d[0]).canUseDOM&&(n=window.performance||window.msPerformance||window.webkitPerformance),m.e {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=!('undefined'==typeof window||!window.document||!window.document.createElement),t={canUseDOM: {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).polyfillGlobal;n('XMLHttpRequest',function(){return r(d[1])}),n('FormData',function() {snip}"],"filename":"app:///index.android.bundle","lineno":130,"colno":581,"in_app":false,"context_line":"{snip} y{'setTimeout'===h||'setInterval'===h||'setImmediate'===h?I():'requestAnimationFrame'===h?I(o()):'requestIdleCallback'===h&&I({timeRemaining {snip}"},{"abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o=t(r(d[1])),n= {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('Promise',function(){return r(d[1])})},115,[116,117]);","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);function l(l,o,n){var b=Object.getOwnPropertyDescriptor(l,o),c=b||{},u=c.enumerable,f {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);r(d[1]),r(d[2]),m.exports=t},117,[118,120,121]);","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=y(!0),o=y(!1),f=y(null),u=y(void 0),c=y(0),l=y('');function y(t){va {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arg {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.res {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[1 {snip}","__d(function(g,r,i,a,m,e,d){'use strict';if(!g.RN$Bridgeless){var l=r(d[0]).polyfillGlobal,t=function(t){l(t,function(){return r(d[1])[t]})} {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[2]),l=(r(d[3]),r(d[4]),r(d[5])),u=null;function o(){return u||(u=r(d[6 {snip}"],"filename":"app:///index.android.bundle","lineno":125,"colno":864,"in_app":false,"context_line":"{snip}  c=1===n._V?u.onFulfilled:u.onRejected;if(null!==c){var _=f(c,n._W);_===o?v(u.promise,t):p(u.promise,_)}else 1===n._V?p(u.promise,n._W):v(u. {snip}"},{"function":"f","abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=void 0;var o=t(r(d[1])),n= {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('Promise',function(){return r(d[1])})},115,[116,117]);","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);function l(l,o,n){var b=Object.getOwnPropertyDescriptor(l,o),c=b||{},u=c.enumerable,f {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);r(d[1]),r(d[2]),m.exports=t},117,[118,120,121]);","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n;var t=y(!0),o=y(!1),f=y(null),u=y(void 0),c=y(0),l=y('');function y(t){va {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t,t.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arg {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);m.exports=n,n.prototype.finally=function(t){return this.then(function(o){return n.res {snip}","__d(function(g,r,i,a,m,e,d){'use strict';(0,r(d[0]).polyfillGlobal)('regeneratorRuntime',function(){return delete g.regeneratorRuntime,r(d[1 {snip}","__d(function(g,r,i,a,m,e,d){'use strict';if(!g.RN$Bridgeless){var l=r(d[0]).polyfillGlobal,t=function(t){l(t,function(){return r(d[1])[t]})} {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[2]),l=(r(d[3]),r(d[4]),r(d[5])),u=null;function o(){return u||(u=r(d[6 {snip}"],"filename":"app:///index.android.bundle","lineno":125,"colno":155,"in_app":false,"context_line":"{snip}  n.then}catch(n){return t=n,o}}function f(n,u){try{return n(u)}catch(n){return t=n,o}}function c(n,u,f){try{n(u,f)}catch(n){return t=n,o}}fu {snip}"},{"abs_path":"app:///index.android.bundle","pre_context":["__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=function(t){var o=t.children,c=t.style; {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]),u=r(d[1]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=function(t){var u=(0,f.useSta {snip}","__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=function(t){var n=t.children; {snip}","__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]),c=r(d[1]);Object.keys(t).forEach(fun {snip}","__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,'__esModule',{value:!0});var o,s,n=r(d[1]),u=r(d[2]),c=r(d[3] {snip}"],"post_context":["__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=r(d[0]),n=r(d[1]),o=r(d[2]),u=r(d[3]);functi {snip}","__d(function(g,r,i,a,m,e,d){'use strict';function n(n){return n&&'object'==typeof n&&'default'in n?n.default:n}Object.defineProperty(e,'__es {snip}","__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){n||(n={}),'function'==typeof n&&(n={cmp:n});var u,o='boolean'==typeof n.cyc {snip}","__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,\"__esModule\",{value:!0});var t,n,u=r(d[0]),f=(t=u)&&t.__esModule?t:{default {snip}","__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,\"__esModule\",{value:!0}),e.default=function(b){var o,t=b.Symbol;if('functio {snip}"],"filename":"app:///index.android.bundle","lineno":1899,"colno":276,"in_app":false,"context_line":"{snip} (n){function c(t){void 0===t&&(t=o);var u=n.call(this,\"number\"==typeof t?\"Invariant Violation: \"+t+\" (see https://github.com/apollographql/i {snip}"},{"function":"parse","abs_path":"[native code]","in_app":true,"filename":"[native code]"}]},"value":"JSON Parse error: Unrecognized token '<'","mechanism":{"type":"generic","handled":true}}]},"fingerprint":["{{ default }}"],"grouping_config":{"enhancements":"eJybzDhxY3J-bm5-npWRgaGlroGxrpHxBABcTQcY","id":"newstyle:2019-10-29"},"hashes":["d5626a764df697380e726d681178aa4e"],"key_id":"1407791","level":"error","location":"[native code]","logger":"","metadata":{"function":"parse","type":"ServerParseError","value":"JSON Parse error: Unrecognized token '<'","filename":"[native code]"},"received":1605715427.957192,"sdk":{"version":"2.0.0","name":"sentry.javascript.react-native","packages":[{"version":"5.27.4","name":"npm:@sentry/react"},{"version":"2.0.0","name":"npm:@sentry/react-native"}]},"threads":{"values":[{"current":false,"stacktrace":{"frames":[{"function":"run","abs_path":"FileObserver.java","module":"android.os.FileObserver$ObserverThread","in_app":false,"lineno":86,"filename":"FileObserver.java"},{"function":"observe","abs_path":"FileObserver.java","in_app":false,"module":"android.os.FileObserver$ObserverThread","filename":"FileObserver.java"},{"function":"onEvent","abs_path":"FileObserver.java","module":"android.os.FileObserver$ObserverThread","in_app":false,"lineno":123,"filename":"FileObserver.java"},{"function":"getStackTrace","abs_path":"Thread.java","module":"java.lang.Thread","in_app":false,"lineno":1538,"filename":"Thread.java"},{"function":"getThreadStackTrace","abs_path":"VMStack.java","in_app":false,"module":"dalvik.system.VMStack","filename":"VMStack.java"}]},"crashed":true,"id":38066,"name":"FileObserver"}]},"timestamp":1605715422.752,"title":"ServerParseError: JSON Parse error: Unrecognized token '<'","type":"error","unknown":null,"user":{"geo":{"city":"Dehiwala","region":"Sri Lanka","country_code":"LK"},"ip_address":"111.223.134.159","id":"f07c0044c37f90aa"},"version":"7"}

@jennmueng
Copy link
Member

jennmueng commented Nov 26, 2020

Hmm this one is actually a separate issue and should be fixed by this: getsentry/sentry-java#1064. You don't need to worry about FileObserver.java and Thread.java, they're how our Android SDK read the events from React Native and shouldn't even be logged.

As the original issue should be resolved, let's close this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants