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.7.0
Framework Version
8.7.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: dsn,
environment: environmentWithAppInstance,
debug: true,
maxValueLength: maxValueLength,
release: version,
integrations: [nodeProfilingIntegration()],
skipOpenTelemetrySetup: true,
tracesSampler: (context) => {
if (context.request?.url?.endsWith("/status")) {
return 0;
}
return defaultTraceSampleRate;
},
profilesSampleRate: profilesSampleRate,
beforeBreadcrumb(breadcrumb, _) {
if (!shouldAddBreadcrumb(breadcrumb)) {
return null;
}
return breadcrumb;
},
beforeSend(event: ErrorEvent, hint: Sentry.EventHint) {
if (!shouldSend(hint)) {
return null;
}
event = removeAuthorizationHeader(event);
return event;
},
});
Steps to Reproduce
- Run
nest start --debug --watch
Node: 20.9.0
NestJS: 10.3.8
Expected Result
The application should start without throwing an unhandled promise rejection.
Actual Result
It throws an unhandled promise rejection (see screenshot):

If I unmark "uncaught exception" in my editor it starts like expected.
Metadata
Metadata
Assignees
Type
Projects
Status
No status