sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

React Native opaque Error Message.

Open qbig opened this issue 10 years ago • 7 comments

I added the line "throw Error("test" ) " to test.

Under development mode, I would got the following redbox. screen shot 2016-01-25 at 11 22 38 am

While Sentry would log the following message screen shot 2016-01-25 at 11 25 39 am

qbig avatar Jan 25 '16 04:01 qbig

under production

'[email protected]:20:29289\[email protected]:2:16763\[email protected]:5:37399\[email protected]:2:26227\[email protected]:2:25616\[email protected]:2:25529\[email protected]:2:12574\[email protected]:2:12746\n[native code]\[email protected]:2:26227\[email protected]:2:25616\[email protected]:5:32722\[email protected]:2:11627\[email protected]:4:14431\[email protected]:4:30838\[email protected]:7:22697\[email protected]:10:20969\n[native code]\[email protected]:20:21385\n[native code]\[email protected]:20:22080\[email protected]:14:27793\n[native code]\[email protected]:8:31014\n[native code]\[email protected]:8:29581\n[native code]\[email protected]:8:27603\n[native code]\[email protected]:5:15647\[email protected]:5:15579\[email protected]:5:15700\[email protected]:5:7177\nforEach@[native code]\[email protected]:5:10729\[email protected]:5:8418\[email protected]:6:13482\[email protected]:6:13583\[email protected]:6:12894\[email protected]:6:13344\[email protected]:1:80194\nindex.android.bundle:1:78741\[email protected]:1:51499\[email protected]:1:78713\n[native code]\nglobal code'

under dev mode

'SetMealView_componentDidMount@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:60461:16\nnotifyAll@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:3753:18\nclose@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:15009:31\ncloseAll@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:4466:19\nperform@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:4407:14\nperform@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:4393:18\nperform@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:3508:38\nflushBatchedUpdates@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:3588:20\nReactUpdates_flushBatchedUpdates@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:2784:18\n[native code]\ncloseAll@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:4466:19\nperform@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:4407:14\nbatchedUpdates@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:14791:20\nenqueueUpdate@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:3621:32\nenqueueUpdate@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:10845:27\nenqueueSetState@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:11054:14\nsetState@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:23191:29\npush@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:31712:14\n[native code]\n_pressRow@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:59985:26\n[native code]\nonPress@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:60022:43\ntouchableHandlePress@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:44082:41\n[native code]\n_performSideEffectsForTransition@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:26899:26\n[native code]\n_receiveSignal@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:26817:38\n[native code]\ntouchableHandleResponderRelease@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:26618:20\n[native code]\nexecuteDispatch@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13662:25\nforEachEventDispatch@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13650:3\nexecuteDispatchesInOrder@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13671:21\nexecuteDispatchesAndRelease@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13024:42\nforEach@[native code]\nforEachAccumulated@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13934:12\nprocessEventQueue@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:13256:19\nrunEventQueueInBatch@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:18629:33\nhandleTopLevel@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:18656:21\n_receiveRootNodeIDEvent@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:18516:39\nreceiveTouches@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:18601:48\n__callFunction@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:2466:21\nhttp://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:2392:22\nguard@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:2348:3\ncallFunctionReturnFlushedQueue@http://10.0.3.2:8081/index.android.bundle?platform=android&dev=true:2391:6\ncallFunctionReturnFlushedQueue@[native code]\nglobal code'

qbig avatar Jan 29 '16 11:01 qbig

@benvinegar Hmmm. Somehow, under dev mode, raven is only keeping the [native code]... part ...

qbig avatar Jan 29 '16 11:01 qbig

You get the same rejected frames in both development and production?

benvinegar avatar Feb 09 '16 21:02 benvinegar

I am having a similar issue. Haven't looked into carefully although I imagine the trace library is to blame. Here is the output I get for the same error in dev + production on android:

Error: broken test at ? ([native code]) at ? ([native code])

And the the dev stacktrace:

broken test /index.bundle in onRefresh at line 71525:16 [native code] in onRefresh /index.bundle in invokeGuardedCallback at line 16706:12 /index.bundle in executeDispatch at line 16462:38 /index.bundle in executeDispatchesInOrder at line 16485:16 /index.bundle in executeDispatchesAndRelease at line 15925:42 /index.bundle in executeDispatchesAndReleaseTopLevel at line 15936:35 /index.bundle in forEachAccumulated at line 16842:8 /index.bundle in processEventQueue at line 16141:19 /index.bundle in runEventQueueInBatch at line 20593:33 /index.bundle in handleTopLevel at line 20609:21 /index.bundle in _receiveRootNodeIDEvent at line 20480:39 /index.bundle in receiveEvent at line 20502:48 /index.bundle in __callFunction at line 3824:28 /index.bundle at line 3728:22 /index.bundle in guard at line 3682:3 /index.bundle in callFunctionReturnFlushedQueue at line 3727:6 [native code] in callFunctionReturnFlushedQueue

lklots avatar Feb 11 '16 18:02 lklots

@lklots – was this Android too? Or do you get the same trace from iOS?

benvinegar avatar Feb 11 '16 19:02 benvinegar

this was on android. let me get you the ios stacktrace as well

lklots avatar Feb 11 '16 19:02 lklots

Hey, Check out our official client for react-native -> https://github.com/getsentry/react-native-sentry Closing this here since it's obsolete. If you're still having troubles, please create an issue there. Thanks

HazAT avatar May 10 '17 07:05 HazAT