Skip to content

sandbox iframe yellowWarning sentry-expo:2.0.3 #811

@vicenteconejerosdelacruz

Description

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions