<?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 Can RUM JS capture or identify a custom error on a xhr request in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/187342#M3679</link>
    <description>&lt;P&gt;We are having difficulties to find a solution for capturing xhr response.&lt;/P&gt;&lt;P&gt;some of our xhr response would get intercept by a gateway/firewall and response back with plain text error.&amp;nbsp; (without hitting our app server)&lt;/P&gt;&lt;P&gt;we want to find out how many xhr calls actually hit by firewall and response with "request denied" message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way we can capture/check xhr response from the client side?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked "add action properties" and "add custom errors rule".&lt;/P&gt;&lt;P&gt;Didnt look liked either one can validate or capture xhr requests. the xhr requests we have triggered 3-4 times on the background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 19:31:48 GMT</pubDate>
    <dc:creator>MikeC</dc:creator>
    <dc:date>2022-05-27T19:31:48Z</dc:date>
    <item>
      <title>Can RUM JS capture or identify a custom error on a xhr request</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/187342#M3679</link>
      <description>&lt;P&gt;We are having difficulties to find a solution for capturing xhr response.&lt;/P&gt;&lt;P&gt;some of our xhr response would get intercept by a gateway/firewall and response back with plain text error.&amp;nbsp; (without hitting our app server)&lt;/P&gt;&lt;P&gt;we want to find out how many xhr calls actually hit by firewall and response with "request denied" message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way we can capture/check xhr response from the client side?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked "add action properties" and "add custom errors rule".&lt;/P&gt;&lt;P&gt;Didnt look liked either one can validate or capture xhr requests. the xhr requests we have triggered 3-4 times on the background.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 19:31:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/187342#M3679</guid>
      <dc:creator>MikeC</dc:creator>
      <dc:date>2022-05-27T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can RUM JS capture or identify a custom error on a xhr request</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/187352#M3680</link>
      <description>&lt;P&gt;If you response is HTTP 2xx with just the payload "request denied", then it's not possible to capture this directly with Dynatrace without modifying your app. Dynatrace does not capture any payload (RUM or server-side). So the check must be performed in your app in the XHR callback and you can send the error using the RUM JavaScript API (dtrum.reportError() or dtrum.reportCustomError()). See more &lt;A href="https://www.dynatrace.com/support/help/shortlink/configure-application-errors" target="_self"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2022 20:03:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/187352#M3680</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2022-05-29T20:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can RUM JS capture or identify a custom error on a xhr request</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/278938#M6939</link>
      <description>&lt;P&gt;Coming back to this post 3 years later - has anything changed in this regard?&lt;BR /&gt;I got into the exact same problem as &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/51669"&gt;@MikeC&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 08:00:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Can-RUM-JS-capture-or-identify-a-custom-error-on-a-xhr-request/m-p/278938#M6939</guid>
      <dc:creator>Omerre</dc:creator>
      <dc:date>2025-06-09T08:00:09Z</dc:date>
    </item>
  </channel>
</rss>

