cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

End User Monitoring (EUM)

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

SOLVED
shaco.zhang
Producer

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

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.

errorerrora lot of request in secondsa lot of request in seconds

By replying you agree to the Terms and Conditions of the AppDynamics Community.
TypeError: Method Promise.prototype.then called on incompatible receiver #<DexiePromise>
2 REPLIES 2
Mohideen.K
AppDynamics Team

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

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
Producer

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

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