-
Notifications
You must be signed in to change notification settings - Fork 237
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
[BUG] Unhandled errors not logged #2013
Comments
Application Insights hooks and uses the So if you are using a framework that is also wrapping the This will require some debugging to check whether the onerror is being hooked and called. Lines 703 to 719 in c037b93
rsp callback function on lines 708..717 will get called.
On you config items above, these are actually not for "unhandled errors", they are used to help track down issues which internally call the ApplicationInsights-JS/shared/AppInsightsCore/src/JavaScriptSDK/DiagnosticLogger.ts Lines 125 to 127 in c037b93
Actually, digging into the code the |
I checked and
It looks like you have support for tracking this event here: Line 840 in 200bb9b
Any idea why this isn't getting run? |
Yep, we have an additional configuration for that |
@MSNev That fixed it! Sorry for opening this issue when it was a config problem. I did try searching through the docs and googling before opening this, but didn't look at your docs closely enough. Do you know why this flag is off my default? Does enabling have some downside I should be aware of? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description/Screenshot
Unhandled exceptions are not logged in our app.
Steps to Reproduce
Expected behavior
Additional context
Add any other context about the problem here.
I saw some references to the "unhandledrejection" event in node_modules/@microsoft/applicationinsights-web/browser, but don't see that event listener on our window:
The text was updated successfully, but these errors were encountered: