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
The global filter come from sentry.io I did not build it.
So, it can be a reason of problem. As I can see it tries to access isHeadersSent method, but Necord doest have HTTP API or something else. So, i think you need extend sentry global filter to correctly process exceptions.
@Catch()classCustomSentryGlobalFilterextendsSentryGlobalFilter{publicconstructor(applicationRef?: HttpServer){super(applicationRef);this.__SENTRY_INTERNAL__=true;this._logger=newLogger('ExceptionsHandler');}/** * Catches exceptions and reports them to Sentry unless they are expected errors. */publiccatch(exception: unknown,host: ArgumentsHost): void{if(host.getType<'necord'>()==='necord'){if(exceptioninstanceofError){this._logger.error(exception.message,exception.stack);}captureException(exception);throwexception;}returnsuper.catch(exception,host);}}
What is your question?
For my bot I am using some buttons and in local I encounter no issue at all but in production it seams that the handler broke my app with this error
I do not understand why its happening only in production
The text was updated successfully, but these errors were encountered: