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
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."?
The text was updated successfully, but these errors were encountered:
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)
Description
https://github.com/getsentry/sentry-javascript/blob/develop/packages/browser/src/sdk.ts#L190
I am studying sentry/browser code.
Initially,
logger.enabled
is set tofalse
.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 theinitAndBind
function.Is it possible to output a warning "No Fetch API detected."?
The text was updated successfully, but these errors were encountered: