If multiple instances of different versions of Application Insights are running on the same page, errors may occur. In this talbe, we have identified several common error messages that you might encounter.
Script Ver | Snippet Context sdkversion | Microsoft.ai | ERROR MESSAGE | |
---|---|---|---|---|
2 -> 3 | 2 | core utils, should be v2 Mod is all v2 |
Uncaught TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking') | |
3 -> 2 | 2 | core utils, should be v2 Mod is all v2 |
TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking') | |
1 -> 3 | 3 | m.ai.version = 1 Inside mode, only RequestHeaders: "---", all other v3 |
Dynamic config change fail | |
3 -> 1 | 3 | Mod all v3,function location is 3 | Uncaught TypeError: Cannot assign to read only property 'CRITICAL' of object '#' Dynamic config change fail |
|
1 -> 2 | 2 | m.ai.version = 1, mod all v2 | TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking') | |
2 -> 1 | 2 | core utils, should be v2 Mod is all v2 |
Uncaught TypeError: Cannot read properties of undefined (reading 'disabbleFetchTracking') |
Typiocal Error in console log:
- Uncaught TypeError: Cannot assign to read only property 'CRITICAL' of object '#'
- When using Dynamic config, get error meesage: Uncaught TypeError: Cannot set property config of # which has only a getter