You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Google Tag Manager (the “react-gtm-module” Ver 2.0.11) in a React application. Our enterprise application was working fine until 3 weeks back (11/14/2023), but all of a sudden one of the functionalities of the application which uses "XMLHttpRequest" object started failing with the below error.
Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json') at XMLHttpRequest.onreadystatechange (:3:163) onreadystatechange @ VM328:3 XMLHttpRequest.send (async)
After much debugging we have identified that this issue is happening due to some sort of conflict with ‘Google Tag Manager’ which is used in the application. If the Google Tag Manager is initialized first, as shown below, then one of the functionalities of the application that uses 'XMLHttpRequest' object is failing with the above error.
It seems like Google Tag Manager is taking over the control of XMLHttpRequest and it is conflicting with the other part of the application that needs XMLHttpRequest. Would you please look into this at the earliest as one of the critical functionalities in our enterprise application has stopped working for a long time?
Please let me know if we can setup a meeting so that I can walk you through this problem.
The text was updated successfully, but these errors were encountered:
We are using Google Tag Manager (the “react-gtm-module” Ver 2.0.11) in a React application. Our enterprise application was working fine until 3 weeks back (11/14/2023), but all of a sudden one of the functionalities of the application which uses "XMLHttpRequest" object started failing with the below error.
Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json') at XMLHttpRequest.onreadystatechange (:3:163) onreadystatechange @ VM328:3 XMLHttpRequest.send (async)
After much debugging we have identified that this issue is happening due to some sort of conflict with ‘Google Tag Manager’ which is used in the application. If the Google Tag Manager is initialized first, as shown below, then one of the functionalities of the application that uses 'XMLHttpRequest' object is failing with the above error.
It seems like Google Tag Manager is taking over the control of XMLHttpRequest and it is conflicting with the other part of the application that needs XMLHttpRequest. Would you please look into this at the earliest as one of the critical functionalities in our enterprise application has stopped working for a long time?
Please let me know if we can setup a meeting so that I can walk you through this problem.
The text was updated successfully, but these errors were encountered: