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

sandbox iframe yellowWarning sentry-expo:2.0.3 #811

Closed
6 of 12 tasks
vicenteconejerosdelacruz opened this issue Mar 28, 2020 · 3 comments
Closed
6 of 12 tasks

sandbox iframe yellowWarning sentry-expo:2.0.3 #811

vicenteconejerosdelacruz opened this issue Mar 28, 2020 · 3 comments

Comments

@vicenteconejerosdelacruz

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

SDK:

  • @sentry/react-native
  • react-native-sentry
  • expo-sentry

SDK version: "sentry-expo": "^2.0.3"
react-native version: "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz"

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

I have following issue: while debugging on android Getting a Yellow Warning Could not create sandbox iframe for pure fetch check, bailing to window.fetch: TypeError: null is not an object (evaluating 'sandbox.hidden = true')

Description goes here
i was able to hide the issue by just commenting the line
logger_1.logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);
on supportsNativeFetch

the issue seems to be the lines
var sandbox = doc.createElement('iframe');
sandbox.hidden = true;
because doc.createElement('iframe'); is returning a null value hence the assignment will throw the error

i'm not sure if this will allow me to debug crashes(which is why i'm installing sentry in the first place) but sending
Sentry.captureException(new Error("Something broke"));
works well and it's visible in sentry dashboard

Steps to reproduce:
-call Sentry.init on App.js

Actual result:

  • Getting a Yellow Warning Could not create sandbox iframe for pure fetch check, bailing to window.fetch: TypeError: null is not an object (evaluating 'sandbox.hidden = true')

Expected result:

  • No warning at all or at least some message hinting on how to solve the issue(if possible)
@vicenteconejerosdelacruz
Copy link
Author

just to clarify, i'm using debug flag in the init function, so removing the debug flag of sentry.Init makes the warning to go away.

@AliTonbul
Copy link

AliTonbul commented Jun 10, 2020

Hi @vichoconejeros , have you had any luck with this issue. I pulled in expo-pixi package and since then I have been getting this error aswell

@vicenteconejerosdelacruz
Copy link
Author

Hi @AliTonbul by removing the debug flag from the init i was able to run sentry. I'm also using expo-pixi but i'm not sure if its related
Regards

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

No branches or pull requests

2 participants