-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unhandled Promise Rejection in debugger on Node startup #12343
Comments
I think you're seeing this: Which has a linked v8 dev tools issue which is still open: The argument is that debugger should not break here because the exception is later caught. Without the debugger attached, this does not result in an unhandled promise rejection. |
I've opened a PR in |
I don't understand how this could be uncaught when there is a catch block right below it 🤔 Maybe this is because of how fetch internals work? |
@timfish |
No sorry. I looked at the open Chromium debugger issues and the causes and then made assumptions based on that and what I know about how awaiting promises vs As @AbhiPrasad says above, the changes I made should have fixed this but the fact that it hasn't suggests this rejection is triggered by the fetch internals. |
I opened a PR where the issue has been resolved in my project (running against 8.19 of Sentry) |
We're going to drop |
Thank you for the update. |
We've released https://github.com/getsentry/sentry-javascript/releases/tag/8.30.0 with using the official package. |
Great work - it works! |
Is there an existing issue for this?
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
Steps to Reproduce
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.
The text was updated successfully, but these errors were encountered: