Splunk AppDynamics

"this.thenCore is not a function" error in Chrome/Chromium based browsers in adrum-latest.js versions 20.8.0.3230+

Stephen_Cunliff
Explorer

We inject the adrum script into our application pointing to the CDN version of "adrum-latest.js". This of course loads the latest version of the script from the CDN.

We noted that as of version 20.8.0.3230 (up to the latest: https://cdn.appdynamics.com/adrum/adrum-20.9.0.3268.js) we are getting the following "this.thenCore is not a function" error in all Chrome or Chromium based browsers (The new Edge, Brave, Vivaldi, Opera)... but Firefox, old Edge and Internet Explorer were fine (didn't check in Safari yet).

image.png

As such we have two questions:

1.) What is a version number from about 2 weeks ago when things appeared to be working for us so that we can link to the older version to verify the issue (and the diff between the versions)

2.) Has anyone else encountered this issue? or know what in our code might trigger this issue?

Labels (1)
Tags (2)
0 Karma
1 Solution

Stephen_Cunliff
Explorer

We found that the solution was that these 2 settings were required as part of the configuration to avoid the this.thenCore error:

config.spa = {"spa2": true};
config.isZonePromise = true;

With these both applied, the error went away, and the pages loaded correctly.

View solution in original post

Sumit_Kumar4
Engager

If 

config.spa = {"spa2": true};
config.isZonePromise = true;

doesn't help try below as it might be conflicting with a library using Promise:

config.noConflictPromiseMode = true

Stephen_Cunliff
Explorer

We found that the solution was that these 2 settings were required as part of the configuration to avoid the this.thenCore error:

config.spa = {"spa2": true};
config.isZonePromise = true;

With these both applied, the error went away, and the pages loaded correctly.

Jeanie_Kedia1
Communicator

Thanks @Stephen.Cunliffe for sharing your solution in the community, helps to build additional knowledge for all to benefit! 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...