-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Is it possible to output a warning "No Fetch API detected."? #16284
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
Comments
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) |
@mydea |
you are right! We'll remove this line altogether probably. |
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: