Splunk AppDynamics

TypeError: Method Promise.prototype.then called on incompatible receiver #<DexiePromise>

shaco_zhang
Engager

Dears, 

    When i manual injection of the JavaScript Agent, I have a problem. It seems to have something conflict with Dexie.js and window.Promise. (This might be helpful: https://dexie.org/docs/Promise/Promise)
    
The script is below, and Dexie's version is  3.0.1.

 <script charset="UTF-8" type="text/javascript">
    window["adrum-start-time"] = new Date().getTime();
    (function(config){
      config.appKey = "*";
      config.adrumExtUrlHttp = "http://cdn.appdynamics.com";
      config.adrumExtUrlHttps = "https://cdn.appdynamics.com";
      config.beaconUrlHttp = "http://pdx-col.eum-appdynamics.com";
      config.beaconUrlHttps = "https://pdx-col.eum-appdynamics.com";
      config.resTiming = {"bufSize":200,"clearResTimingOnBeaconSend":true};
      config.maxUrlLength = 512;
    })(window["adrum-config"] || (window["adrum-config"] = {}));
  </script>
  <script src="//cdn.appdynamics.com/adrum/adrum-20.9.0.3268.js"></script>
  <script>

    In addition, it leads thousands of requests and doesn't stop itself. We have to close the page in the end.

    If you have any ideas, please let me know. Thanks a lot.

image.pngerrorimage.pnga lot of request in seconds

Labels (1)
0 Karma
1 Solution

Mohideen_K
Engager

Hi Zhang,


Can you please add the below parameter along with the instrumentation code and let know if that helps.

config.isZonePromise = true;

Regards,

Mohideen

View solution in original post

Mohideen_K
Engager

Hi Zhang,


Can you please add the below parameter along with the instrumentation code and let know if that helps.

config.isZonePromise = true;

Regards,

Mohideen

shaco_zhang
Engager

Cool, This is the right solution.
Thanks for your reply!

Get Updates on the Splunk Community!

Developer Spotlight with Brett Adams

In our third Spotlight feature, we're excited to shine a light on Brett—a Splunk consultant, innovative ...

Index This | What can you do to make 55,555 equal 500?

April 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this ...

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...