Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.9.2
Framework Version
No response
Link to Sentry event
SDK Setup
Sentry.init({
dsn: dsn,
attachStacktrace: true,
release: release,
environment: enviroment,
serverName: serverName
})
Steps to Reproduce
- Bootstrap app as described in the documentation:
async function bootstrap() {
const app = await NestFactory.create(AppModule);
const { httpAdapter } = app.get(HttpAdapterHost);
Sentry.setupNestErrorHandler(app, new BaseExceptionFilter(httpAdapter));
await app.listen(3000);
}
- Send a request to the server which results in a
NotFoundException
or404
Expected Result
Server should respond with a 404 error and this error should not be sent to Sentry as its expected behaviour.
Actual Result
Event is reported and devs get a notification causing noise.
Metadata
Metadata
Assignees
Type
Projects
Status
No status