We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description/Screenshot Service worker will fail to trackException because there is an unchecked window reference for getting the stack.
Steps to Reproduce init app insights inside a service worker with following config:
{ config: { instrumentationKey: 'key here', disableXhr: true, disableFetchTracking: false } })
call trackException(new Error('error')) and flush()
trackException(new Error('error'))
flush()
new ApplicationInsights(snippet)
Expected behavior Should be able to send track exception to app insights
Additional context Add any other context about the problem here. This error happens because we call window directly here:
window
ApplicationInsights-JS/shared/AppInsightsCommon/src/Telemetry/Exception.ts
Line 154 in 91ee603
This should most likely be getGlobalInst('opera') instead so that it safely bails out when window is not available.
getGlobalInst('opera')
The text was updated successfully, but these errors were encountered:
[BUG] Cannot track exception from service worker #1727
92b6915
[BUG] Cannot track exception from service worker #1727 (#1732)
917ce0c
Now fully released
Sorry, something went wrong.
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.
MSNev
No branches or pull requests
Description/Screenshot
Service worker will fail to trackException because there is an unchecked window reference for getting the stack.
Steps to Reproduce
init app insights inside a service worker with following config:
call
trackException(new Error('error'))
andflush()
new ApplicationInsights(snippet)
Expected behavior
Should be able to send track exception to app insights
Additional context
Add any other context about the problem here.
This error happens because we call
window
directly here:ApplicationInsights-JS/shared/AppInsightsCommon/src/Telemetry/Exception.ts
Line 154 in 91ee603
This should most likely be
getGlobalInst('opera')
instead so that it safely bails out when window is not available.The text was updated successfully, but these errors were encountered: