Comments (10)
I should have done this when I created this post but I just downgraded until I got to a version where the issue does not happen. The issue does NOT happen in version 3.0.3. The issue happens in version 3.0.4 and 3.0.5.
When I did my tests I was using App Insights in a custom web part inside SharePoint Online with the latest version of Chrome and checking/unchecking the "Block third party cookies" option under the Third party cookies settings.
from applicationinsights-js.
Confirm on my side also.
This bug broke our integration autotest suite running with Playwright.
Cannot do a proper repro though. This issue prevent Playwright to close browser window.
Using
"@microsoft/applicationinsights-web": "^3.0.5",
from applicationinsights-js.
Seems to be duplication of #2195
from applicationinsights-js.
Tagged as a bug and p1.
Is anyone hitting this when downloading via the CDN?
ai.3.min.js
orai.3.gbl.min.js
(as these are both v3.0.5), so you can't easily downgrade (but we could roll them back to 3.0.3 if required).
@MSNev Yep, I seem to be hitting this when using the CDN js file. Any way for me to easily downgrade the js file to 3.0.3?
from applicationinsights-js.
@MSNev Nev Wylie FTE Yep, I seem to be hitting this when using the CDN js file. Any way for me to easily downgrade the js file to 3.0.3?
Yes, I was afraid of that.
I've started the process of creating an out of band deployment (which will be called v3.0.6), we have an initial PR to address this which is being dropped into main
#2208, but as we already have other code in main we are going to have to create a special release branch -- so it will be a few days before we will be able to publish and then probably next week before we promote as the primary version on the CDN.
To answer your question -- Yes, you can target a specific release from the CDN (as long as we deployed it to the CDN), the details about all of the different formats along with the primary and full versions is documented on the main readme page here
But simplistically, instead of saying ai.3.min.js
or ai-3.gbl.min.js, just specify the full version number
ai.3.0.3.min.jsor
ai.3.0.3.gbl.min.js`
From a process perspective, on the day we "publish" a release to the npm we also publish the full version to the CDN (it's now automated), and then we go through a promotion process to effectively "change" the ai.3.min.js
(etc) to be the new "promoted" version (simplistically we copy the full version (ai.3.0.3.*
) to ai.3.0.*
and ai.3.*
)
from applicationinsights-js.
I got the same issue,
- I'm using App insight with Adobe AEM (React 16)
@microsoft/applicationinsights-react-js": "^2.5.4", "@microsoft/applicationinsights-web": "^3.0.5"
- Intermittently I see hundreds or tens of thousands of requests Most of them are ping
in chrome network tab the column type is ping
- So I added this to my code base
appInsights.addTelemetryInitializer((envelope) => { if (envelope.data.baseType === "PingData") { return false; } return true; });
That seems to did the trick but since it's an intermittent issue it's hard to tell with accuracy if that fixed it or not.
from applicationinsights-js.
Seems to be duplication of #2195
@alfeg Yep, seems to be the same issue. SharePoint Online does a bunch of funky stuff when third party cookies are disabled like doing full page reloads 4-5 times after the initial page load for their authentication. That could be what's triggering it for me. I imagine there are a lot of different scenarios that trigger the bug.
from applicationinsights-js.
This does seem to be a side effect of #2195, and as part of this you will need to either downgrade useSendBeacon: false
in the configuration as we have not scheduled releases for the rest of '23 due to the holidays.
from applicationinsights-js.
Tagged as a bug and p1.
Is anyone hitting this when downloading via the CDN? ai.3.min.js
or ai.3.gbl.min.js
(as these are both v3.0.5), so you can't easily downgrade (but we could roll them back to 3.0.3 if required).
from applicationinsights-js.
OP here, this issue appears to be fixed in 3.0.6. I cannot reproduce it when disabling third party cookies like I did before.
from applicationinsights-js.
Related Issues (20)
- how to fix "NullInjectorError: No provider for AppInsightsSku!" HOT 2
- [BUG] Retry on sampled out telemetry is looping infinitely HOT 5
- Add `customSpan` telemetry type HOT 8
- [Question] App crash with the trace message HOT 1
- [BUG] - CRITICAL - Application runs out of memory HOT 7
- [BUG] Filtering logs with status code 308 does not work HOT 2
- Deprecated feature used when using with jQuery 3.7.1 HOT 8
- [BUG] `ITelemetryItem` uses intersection type instead of union type for `tags` property HOT 4
- [BUG] Network calls aren't visualized correctly between frontend(AI-JS) / backend(Azure Otel Distro) components in Application Map HOT 2
- [BUG] [Web-Snippet] dependency chain issues
- [BUG] Event time is not set HOT 4
- [BUG] @microsoft/applicationinsights-web-snippet version 1.1.1 type problem
- `console.log` unnecessarily noisy HOT 3
- Need to add max retry count for telemetry events to prevent events accumulation in sent buffer
- [Offline Support] offline support plugin can't be added to extensions of core config now, it can only be added through addPlugin
- [main] retry document updates HOT 1
- [BUG] remove 403 as a “retriable” error code
- [BUG] Circular dependencies
- ApplicationInsights-JS latest version 3.1.1 giving TypeError: Cannot read properties of undefined (reading 'getCrypto') HOT 32
- [BUG] Excessive memory usage for SPA where unload hooks keep accumulating HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applicationinsights-js.