You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to output a warning "No Fetch API detected."? #16284
In the initAndBind function of sentry/core, logger.enable() is called, and the logger is enabled from then on.
However, logger.warn('No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.',); exists above the initAndBind function.
Is it possible to output a warning "No Fetch API detected."?
We do not officially support any environments where fetch is not supported. Why would you need/want such a warning? Do you expect this to not be supported somewhere? I was actually thinking about removing this warning all together 🤔 (as this will trigger a warning/error/log anyhow once the SDK tries to send something to sentry and encounters fetch not existing)
Activity
mydea commentedon May 14, 2025
We do not officially support any environments where fetch is not supported. Why would you need/want such a warning? Do you expect this to not be supported somewhere? I was actually thinking about removing this warning all together 🤔 (as this will trigger a warning/error/log anyhow once the SDK tries to send something to sentry and encounters fetch not existing)
jihea-park commentedon May 15, 2025
@mydea
I was just studying your code and found that line wasn't doing anything.
mydea commentedon May 15, 2025
you are right! We'll remove this line altogether probably.
ref(browser): Streamline browser `init()` checks (getsentry#16340)