Skip to content
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

Datadog Real User Monitoring breaks node express client server on IE11 #611

Closed
lauraeci opened this issue Nov 6, 2020 · 6 comments
Closed

Comments

@lauraeci
Copy link

lauraeci commented Nov 6, 2020

Using the @datadog/browser-rum package with Node apollo web client fails on IE11.

Seeing multiple requests to https://run-http-intake.logs.datadoghq.com on IE11 that are different than Chrome. Unable to login to the application on IE11. Working theory is that datadogRUM is blocking other application requests on IE11. When datadogRUM is removed, the application is working correctly.

Chrome and IE11 requests:

Only IE11 request:

Request Method: CONNECT RequestURL: https://rum-http-intake.logs.datadoghq.com Proxy-Connection: Keep-Alive

Using the init method from the documentation like:

import { datadogRum } from '@datadog/browser-rum' 

datadogRum.init({
          applicationId: '<DATADOG_APPLICATION_ID>',
          clientToken: '<DATADOG_CLIENT_TOKEN>',
           site: '<DATADOG_SITE>',
           env: process.env.ENVIRONMENT,
            silentMultipleInit: true,
            sampleRate: 100,
            trackInteractions: false,
            useSecureSessionCookie: true,
})

Please let me know what additional information I should find to help with this issue. IE11 issues are no fun. Thank you!

@lauraeci lauraeci changed the title Datadog Real User Monitoring breaks node server on IE11 Datadog Real User Monitoring breaks node express client server on IE11 Nov 6, 2020
@bcaudan
Copy link
Contributor

bcaudan commented Nov 9, 2020

Hi @lauraeci,

Thank you for raising that.

  • Are you application requests triggered correctly?
  • Do you see any network or console error associated to this issue?
  • Can I have a look at your setup somewhere?

@lauraeci
Copy link
Author

lauraeci commented Nov 9, 2020

Hi @bcaudan,

Thank you for your help.

  • We are getting logs uploaded to RUM Explorer from IE11. No network or console errors, so I'm guessing an application request is not happening for login.
  • I can reach out to our live support to provide more detailed information about our setup. Please let me know what information I can provide to them to facilitate the request.
  • Reaching out to our team to provide more details on if our application requests are triggered correctly.

Additional information: we're using browser-logs without issue on IE11. When I remove the datadogRum.init the application works as expected on IE11. No issue with datadogRum.init on Chrome.

@bcaudan
Copy link
Contributor

bcaudan commented Nov 10, 2020

Is there a public page where I can have a look at your application?

@carlpeaslee
Copy link

carlpeaslee commented Nov 11, 2020

Hi @bcaudan , thanks for looking into this.

Are you application requests triggered correctly?

We are using apollo client for all our outgoing requests. We aren't having any problems on IE or elsewhere. Our configuration isn't especially unusual though we are polyfilling fetch with whatwg-fetch

Do you see any network or console error associated to this issue?

We don't. It doesn't seem as though the network requests are even sent.

Can I have a look at your setup somewhere?

Which aspect of our setup would you like to look at? This is how we're initializing datadogRUM

    datadogRum.init({
        applicationId: /*REDACTED*/,
        // this token is passed to the client, so not secret.
        // https://docs.datadoghq.com/account_management/api-app-keys/#client-tokens
        clientToken: /*REDACTED*/,
        site: 'datadoghq.com',
        env: process.env.ENVIRONMENT, //we are using webpack to inject process.env vars into our client app
        sampleRate: 100,
        trackInteractions: true,
    })

Is there a public page where I can have a look at your application?

And here is our demo application. You can check out the login page on our demo environment to see most of our application bootstrap / package stuff and then if you try to login you should be able to see a network request.

https://demo.pathpoint.com/broker/login

@bcaudan
Copy link
Contributor

bcaudan commented Nov 12, 2020

Hi @carlpeaslee,

Thanks for all these details!
I have been able to reproduce the issue on IE 11 on your demo application.

The issue is due to a mismatch between browser-rum and browser-logs version.
I would advise you to either:

  • install browser-rum@1.12.9 to match browser-logs version in your setup
  • upgrade your browser-logs version to match your browser-rum version

I have tested with browser-rum@1.12.9 and the issue does not happen anymore.

@lauraeci
Copy link
Author

@bcaudan this fixed our issue. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants