sentry-javascript: NotFoundError: The object can not be found here.

Package + Version

@sentry/browser 5.10.0

Version:

5.9.0

Description

We get a error in Sentry and the browser. This error is produced by sentry itself.

[Error] NotFoundError: The object can not be found here.
	sentryWrapped (bundle.min.js:2:44638) * helpers.ts:110

We are running a react web app inside of a iOS Webkit Webview. This error triggers everytime we launch the app.

https://github.com/getsentry/sentry-javascript/blob/master/packages/browser/src/helpers.ts

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

To all those getting these errors, are you using React? Are you using Fragments?

This can happen if you have a conditional block as a direct child of the Fragment. Fragments do not exist in the resulting DOM. Any conditional block that can add/remove a child element when props or states change will not be able to find the “parent” element in the DOM because the Fragment does not exist

@pinkasey you can track the handler that failed using serialized arguments, see:

[
  {
    currentTarget: div.fl-content-slider > div.bx-wrapper > div.bx-viewport, 
    isTrusted: [object TouchEvent], 
    target: div.fl-slide-content-wrap > div.fl-slide-content, 
    type: touchend
  }
]

This stackoverflow page talks about fragments and also another common issue related to the use of Google translate plugins

https://stackoverflow.com/questions/54880669/react-domexception-failed-to-execute-removechild-on-node-the-node-to-be-re

are you using React? Are you using Fragments?

yes!

Are you confident this error is coming from Sentry, or could it not come from another place? I see no stack trace in the provided screenshots, so this may come from any place, e.g. a Browser Extension or similar.

Could you provide a link to a Sentry event (if you are on SaaS) that we can take a look at? Also note that you are on a very old version, I suggest you update Sentry to latest and try again, it may be fixed in the meanwhile.

just experienced the same issue… any workaround or solution ?

<html> <body> <div class=" app-1tryii9 e9xr8173" style="box-sizing: border-box; display: flex; flex-direction: column; margin: 0px; padding: 12px 30px; color: rgb(62, 52, 70); font-family: Rubik, "Avenir Next", "Helvetica Neue", sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><div class="app-bjn8wh e11dlz2y1" style="box-sizing: border-box; position: relative;">
Brand Apple
Family iPhone
Model iPhone
</div></div> </body> </html> <html> <body>
Name iOS
Version 16.0
</body> </html> <html> <body>
Name sentry.javascript.nextjs
Version 7.12.1
</body> </html>