AppDynamics Knowledge Base

How do I resolve a "Maximum call stack exceeded" error when instrumenting Angular apps?

How do I resolve a "Maximum call stack exceeded" error when instrumenting Angular apps?

Why the RangeError: Maximum call stack exceeded error is thrown and what to do about it

Problem

You receive the error RangeError: Maximum call stack size exceeded for an Angular application when config.fetch is set to True.

Solution

To resolve the issue, add the appropriate code from the table below to the JavaScript Agent config file:

 

JavaScript Agent v4.5.14 and lower 

config.angular=true

JavaScript Agent v4.5.15 and higher

config.isZonePromise=true

Labels (1)
Version history
Last update:
‎01-13-2020 05:55 PM
Updated by: