GithubHelp home page GithubHelp logo

[BUG] applicationinsights.azure.com/v2/track making hundreds of thousands of requests when third party cookies are disabled about applicationinsights-js HOT 10 CLOSED

kbeeveer46 avatar kbeeveer46 commented on June 10, 2024 4
[BUG] applicationinsights.azure.com/v2/track making hundreds of thousands of requests when third party cookies are disabled

from applicationinsights-js.

Comments (10)

kbeeveer46 avatar kbeeveer46 commented on June 10, 2024 2

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.

alfeg avatar alfeg commented on June 10, 2024 1

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.

alfeg avatar alfeg commented on June 10, 2024 1

Seems to be duplication of #2195

from applicationinsights-js.

sayowayah avatar sayowayah commented on June 10, 2024 1

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).

@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 avatar MSNev commented on June 10, 2024 1

@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.jsorai.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.

Mohamed-Ahmed-Abdullah avatar Mohamed-Ahmed-Abdullah commented on June 10, 2024

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.

kbeeveer46 avatar kbeeveer46 commented on June 10, 2024

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.

MSNev avatar MSNev commented on June 10, 2024

This does seem to be a side effect of #2195, and as part of this you will need to either downgrade ☹️ or include the useSendBeacon: false in the configuration as we have not scheduled releases for the rest of '23 due to the holidays.

from applicationinsights-js.

MSNev avatar MSNev commented on June 10, 2024

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.

kbeeveer46 avatar kbeeveer46 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.