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 browser exceptions not being tracked. #282
Comments
There are two configuration settings which can help with debugging - see IConfig. They are both set to
|
I tried enabling 'enableDebug' and 'verboseLogging' and I still don't see any exception data. Here's a sample of our code:
With this I can see the 'Test' page view in the azure app insights portal but not the exception. Where am I supposed to see the verbose logging? The only thing the Chrome console shows is the uncaught exception message. |
I'm experiencing the same issue, any idea when we can see a solution for this? |
I think I'm experiencing the same issue. Isn't the problem the fact that it's not In // collect global errors
if (!aiConfig.disableExceptionTracking) {
AppInsightsModule._createLazyMethod("_onerror");
var originalOnError = window["_onerror"];
window["_onerror"] = function (message, url, lineNumber, columnNumber, error) {
var handled = originalOnError && originalOnError(message, url, lineNumber, columnNumber, error);
if (handled !== true) {
aiObject["_onerror"](message, url, lineNumber, columnNumber, error);
}
return handled;
};
} AFAIS this is different than // collect global errors
if (!aiConfig.disableExceptionTracking) {
method = "onerror";
createLazyMethod("_" + method);
var originalOnError = localWindow[method];
localWindow[method] = function(message, url, lineNumber, columnNumber, error) {
var handled = originalOnError && originalOnError(message, url, lineNumber, columnNumber, error);
if (handled !== true) {
appInsights["_" + method](message, url, lineNumber, columnNumber, error);
}
return handled;
};
} |
This is happening when you throw an error in the snippet's You can bypass this limitation by throwing error in a different
EDIT: I fixed the snippet to capture errors thrown from the snippet's script block - #427. |
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. |
I've included the applicationinsights-js module and initialized it with my instrumentation key. I also tried tracking page views which do show up in the azure portal.
I've been trying to get unhandled browser exceptions to show up in the portal with no success. I've tried manually throwing the exceptions or faking invalid operations but neither of them are tracked by app insights. Is there something I'm missing or any way to get logging to show if app insights is ignoring my exceptions?
I encountered this issue with this javascript example and this example with typescript.
The text was updated successfully, but these errors were encountered: