<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EUM cannot report fetch API with React SPA in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716188#M48</link>
    <description>&lt;P&gt;I have a Single Page Application (SPA) written in React.&lt;/P&gt;&lt;P&gt;The SPA is using fetch API instead of AJAX to communicate CORS endpoints.&lt;/P&gt;&lt;P&gt;I am trying to add below EUM codes into my SPA, it is able to report the first page load time.&lt;/P&gt;&lt;P&gt;However, it is not able to capture any fetch API which I made from this page.&lt;/P&gt;&lt;P&gt;I can see "Configure JavaScript Agent" mentions "Monitor Fetch API calls" with a tick.&lt;/P&gt;&lt;P&gt;But I still cannot make it works, can anyone please advise what I have missed? Thanks.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;&amp;lt;script charset="UTF-8" type="text/javascript"&amp;gt;
window["adrum-use-strict-domain-cookies"] = true;
window["adrum-start-time"] = new Date().getTime();
(function(config){
config.appKey = "AD-AAB-ABF-ASU";
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.useHTTPSAlways = true;
config.urlCapture = {"filterURLQuery":true};
config.xd = {"enable":true};
config.resTiming = {"bufSize":200,"clearResTimingOnBeaconSend":true};
config.maxUrlLength = 512;
config.spa = {"spa2":true};
})(window["adrum-config"] || (window["adrum-config"] = {}));
&amp;lt;/script&amp;gt;
&amp;lt;script src="//cdn.appdynamics.com/adrum/adrum-latest.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 08 Jul 2021 09:09:18 GMT</pubDate>
    <dc:creator>Kit_Zhang</dc:creator>
    <dc:date>2021-07-08T09:09:18Z</dc:date>
    <item>
      <title>EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716188#M48</link>
      <description>&lt;P&gt;I have a Single Page Application (SPA) written in React.&lt;/P&gt;&lt;P&gt;The SPA is using fetch API instead of AJAX to communicate CORS endpoints.&lt;/P&gt;&lt;P&gt;I am trying to add below EUM codes into my SPA, it is able to report the first page load time.&lt;/P&gt;&lt;P&gt;However, it is not able to capture any fetch API which I made from this page.&lt;/P&gt;&lt;P&gt;I can see "Configure JavaScript Agent" mentions "Monitor Fetch API calls" with a tick.&lt;/P&gt;&lt;P&gt;But I still cannot make it works, can anyone please advise what I have missed? Thanks.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;&amp;lt;script charset="UTF-8" type="text/javascript"&amp;gt;
window["adrum-use-strict-domain-cookies"] = true;
window["adrum-start-time"] = new Date().getTime();
(function(config){
config.appKey = "AD-AAB-ABF-ASU";
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.useHTTPSAlways = true;
config.urlCapture = {"filterURLQuery":true};
config.xd = {"enable":true};
config.resTiming = {"bufSize":200,"clearResTimingOnBeaconSend":true};
config.maxUrlLength = 512;
config.spa = {"spa2":true};
})(window["adrum-config"] || (window["adrum-config"] = {}));
&amp;lt;/script&amp;gt;
&amp;lt;script src="//cdn.appdynamics.com/adrum/adrum-latest.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jul 2021 09:09:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716188#M48</guid>
      <dc:creator>Kit_Zhang</dc:creator>
      <dc:date>2021-07-08T09:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716189#M49</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hi &lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/153415"&gt;@Kit.Zhang&lt;/A&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P&gt;Thank you for posting to the community.&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;By default, the JavaScript Agent reports Ajax requests made with XMLHttpRequest object (XHR) and the Fetch API, and you are not disabling fetch API, so the setting should be fine.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://docs.appdynamics.com/21.7/en/end-user-monitoring/browser-monitoring/browser-real-user-monitoring/configure-the-javascript-agent/disable-monitoring-of-fetch-api-calls" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/21.7/en/end-user-monitoring/browser-monitoring/browser-real-user-monitoring/configure-the-javascript-agent/disable-monitoring-of-fetch-api-calls&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN&gt;To investigate further, could you please share below?&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Please share a HAR file which contains a page load and fetch API execution if it doesn't contain sensitive and personally-identifying information.&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-create-a-HAR-File-to-troubleshoot-web-download-issues/ta-p/23373" target="_blank"&gt;https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-create-a-HAR-File-to-troubleshoot-web-download-issues/ta-p/23373&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;If it contains those information, you shouldn't upload such file here, so could you please check if there is an adrum post request after your fetch API request in the network tab of the DevTools?&amp;nbsp;&lt;/SPAN&gt;In addition, could you please confirm the adrum post request contains information of the executed fetch API ?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="font-family: inherit;"&gt;Please share a debug console log. Again, if it contains sensitive and personally-identifying information, could you please check if there is any error&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-to-debug-a-browser-page-by-modifying-adrum-js/ta-p/23516" target="_blank"&gt;https://community.appdynamics.com/t5/Knowledge-Base/How-to-debug-a-browser-page-by-modifying-adrum-js/ta-p/23516&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;

&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jul 2021 01:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716189#M49</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2021-07-13T01:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716190#M50</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/152509"&gt;@Hiroki.Ito&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;An adrum post request was sent after page load,&amp;nbsp; but there is no adrum post request after a&amp;nbsp;fetch API request made on the same page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KitZhang_1-1626142813834.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35436i5547C27F914CCE47/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Console log haven't any error, and can you advise how I can upload the output of&amp;nbsp;ADRUM.dumpLog() here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I cannot found any button for upload log/zip file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 02:27:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716190#M50</guid>
      <dc:creator>Kit_Zhang</dc:creator>
      <dc:date>2021-07-13T02:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716191#M51</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hi &lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/153415"&gt;@Kit.Zhang&lt;/A&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for sharing the network information.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Sorry it seems it is not possible to upload a log file.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Could you just copy and paste it?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Or if it is very long and not pasteable, could you raise a support ticket?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-submit-a-Support-ticket-An-FAQ/ta-p/28959" target="_blank"&gt;https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-submit-a-Support-ticket-An-FAQ/ta-p/28959&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Please attach HAR file and debug console log there.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jul 2021 05:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716191#M51</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2021-07-13T05:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716192#M52</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/152509"&gt;@Hiroki.Ito&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your advice. I have created a ticket with Request ID #291245. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 06:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716192#M52</guid>
      <dc:creator>Kit_Zhang</dc:creator>
      <dc:date>2021-07-13T06:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716193#M53</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hi &lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/153415"&gt;@Kit.Zhang&lt;/A&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for sharing.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;When you get the answer, would you please share the results/learnings back on this post?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Knowledge sharing is what drives this community forward. &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hiroki&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Jul 2021 00:04:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716193#M53</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2021-07-14T00:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716194#M54</link>
      <description>&lt;P&gt;As checked with AppD support,&amp;nbsp; the issue is due to I was dynamically injecting AppD script segments after page loaded.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;It is working fine now after moving the AppD script segment before page loaded.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 03:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716194#M54</guid>
      <dc:creator>Kit_Zhang</dc:creator>
      <dc:date>2021-07-19T03:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: EUM cannot report fetch API with React SPA</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716195#M55</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/153415"&gt;@Kit.Zhang&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;

&lt;P&gt;Thank you for letting us know!&lt;/P&gt;
&lt;P&gt;Great to hear the issue is fixed!&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Hiroki&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 08:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/EUM-cannot-report-fetch-API-with-React-SPA/m-p/716195#M55</guid>
      <dc:creator>Hiroki_Ito</dc:creator>
      <dc:date>2021-07-19T08:46:47Z</dc:date>
    </item>
  </channel>
</rss>

