# Exclude/Ignore HTTP 5xx Series Error with specific exception message

**URL:** <https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840>\
**Category:** Alerting\
**Tags:** problem-detection, problems-classic\
**Created:** [September 29, 2021, 9:39am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840 "2021-09-29T09:39:20Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [September 29, 2021, 9:39am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/1 "2021-09-29T09:39:20Z")

</div>

Could someone confirm that can we still ignore even HTTP 500 class exceptions by utilizing the Client abort exception? As far I have understood correctly we could utilize the following option to exclude exception even when a 500+ is returned.

 ![janne_olkoniemi_0-1632907364385.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/e/7ed58a62018d7be701407cea5f4f8fd98a1a80bb.png)

We are trying to exclude exception from calls which are throwing&nbsp;“500 - Internal Server Error” and have excluded the following exception&nbsp;RequestError /&nbsp;“Samat tiedot muokattavana toisessa ikkunassa” as client abort exception but the exception rules are not working on this case.

 ![janne_olkoniemi_1-1632908078094.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e977a3b8294a085783e35e52196f034dfe5676f9.png)

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [October 27, 2021, 1:11pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/2 "2021-10-27T13:11:53Z")

</div>

Yes this is correct 🙂

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [October 27, 2021, 1:18pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/3 "2021-10-27T13:18:43Z")

</div>

Just to confirm, that should we still be able to exclude the HTTP 500 series vie Client abort exception since I got this answer to my support ticket. So currently little bit confused that should it work or not.

_If you look at the error detection result on the call, you can see that the call fails because of the HTTP code (500), not because of an exception. You could suppress 500, but that is usually not what you would like to have.&nbsp;Currently, there is no way of doing something like “ignore 500 if a specific “harmless” exception is thrown”; this is a known shortcoming of the current failure detection approach._

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [November 18, 2021, 6:39am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/4 "2021-11-18T06:39:49Z")

</div>

Hi&nbsp;[@janne\_olkoniemi](https://community.dynatrace.com/user/23527)&nbsp;  
Im facing exactly the same problematic.:alert_blue:

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 28, 2021, 8:43pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/5 "2021-12-28T20:43:11Z")

</div>

It works as described. You can use client abort - if such an exception is found, the request is automatically considered as successful. It will definitely work for the use case above.

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [December 29, 2021, 6:38am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/6 "2021-12-29T06:38:09Z")

</div>

Yep, that’s something that I also expected about but we have case where is not working and I had support ticket open about the case and I got the following answer from support.

_If you look at the error detection result on the call, you can see that the call fails because of the HTTP code (500), not because of an exception. You could suppress 500, but that is usually not what you would like to have.&nbsp;Currently, there is no way of doing something like “ignore 500 if a specific “harmless” exception is thrown”; this is a known shortcoming of the current failure detection approach._

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 29, 2021, 12:28pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/7 "2021-12-29T12:28:54Z")

</div>

Hi [@janne\_olkoniemi](https://community.dynatrace.com/user/23527)&nbsp;,

I believe the answer you have from support is incorrect. I use the client abort exception list exactly for this purpose and it works as I described. However be aware of the fact if such exception occurred it is automatically marked as successful. If there is another exception in the service call representing failed request it will be ignored. So put in the client abort exceptions only those when you are confident these request are successful.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [December 29, 2021, 1:17pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/8 "2021-12-29T13:17:38Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;  
I get exactly the same response from the support

For The client abort exception:  
You need to put this exception under every single service? or you made it globally via API?

If via API, could you please show us the parameter and the rule you are using?

But, for the mentioned note

_If there is another exception in the service call representing failed request it will be ignored._

Its not also correct to ignore such an exception.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 29, 2021, 1:37pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/9 "2021-12-29T13:37:27Z")

</div>

Hi&nbsp;[@Malaik](https://community.dynatrace.com/user/23195)&nbsp;,

you will either need to put this exception for each service in the failure detection settings or you can use the&nbsp;[failure detection api](https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/service-api/failure-detection)&nbsp;to apply the setting across set of services. The failure detection API is an early-access feature and settings made using the Failure Detection API are not (yet) visible in the UI.

Using the API you need to create a Parameter Set and use the&nbsp;successForcingExceptionPatterns properties. Then you need to create a detection rule describing where to apply the Parameter Set. For example for services having a particular tag.

For the note - the exception won’t be ignored as such, it’s still visible in the PurePath. It just won’t be a reason for a failure if the request contains an exception from the client abort exception list for the service.

Hope this helps.  
Julius

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [December 30, 2021, 8:27am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/10 "2021-12-30T08:27:04Z")

</div>

Thanks&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

This is exactly What I did.

Whether under the service itself or globally via API, some failures still going up.

Thanks and good day.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [December 30, 2021, 11:23am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/11 "2021-12-30T11:23:37Z")

</div>

Hi&nbsp;[@Malaik](https://community.dynatrace.com/user/23195)&nbsp;,

please check the reasons in the Errors tab for such requests or use the “View details of failures” analysis.

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [December 30, 2021, 12:52pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/12 "2021-12-30T12:52:14Z")

</div>

Thanks

I created this rule:

{  
“id”: “FDP\_2”,  
“name”: “shipping”,  
“description”: “for requests from shipping module”,  
“clientSideMissingHttpCodeIsFailure”: false,  
“serverSideMissingHttpCodeIsFailure”: false,  
“failingHttpCodesClientSide”: “400-599”,  
“failingHttpCodesServerSide”: “500-599”,  
“http404NotFoundFailureEnabled”: false,  
“brokenLinkDomains”: [  
“[mydomain.com](http://mydomain.com)”  
],  
“successForcingExceptionPatterns”: [  
{  
“classPattern”: “System.Net.WebException”,  
“messagePattern”: “The remote server returned an error: (500) Internal Server Error.”  
}  
],  
“tagConditions”: [  
{  
“tagKey”: “myTag”,  
“predicate”: {  
“type”: “STRING\_EQUALS”,  
“value”: “NG”,  
“ignoreCase”: true  
}  
}  
]  
}

After, this exceptions still coming:

 ![Malaik_0-1640868726913.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/99356e88f678b0c5b529bd63788a7d923e8cdfef.png)

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [December 30, 2021, 1:36pm UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/13 "2021-12-30T13:36:16Z")

</div>

Our case is little bit different since the same error happens on the database call which the “root” service has made. So even when we have excluded the event from the database also it seems that it causes that our root level exception rule does not work.

 ![janne_olkoniemi_0-1640871500664.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/a/ca349498e13bed6086b10d443da1f725e775c6d2.png)

Got the following confirmation trough our Dynatrace technical contact also that’s the case currently and need to find a some other way to play around than the client abort&nbsp;exception rule.

_The reason why the client abort exception does not work in this case is because the way this feature is designed to work is to check the root node for an exception. In the provided example the exception happens somewhere on the node tree. The reason why this feature was implemented like this is because there is no way to preserve consistent behavior if we want to enforce success forcing exceptions happening somewhere on the node tree. For example, what should be the outcome when the node entry point has a success forcing exception but also there is another exception(s) happening somewhere on the node tree._

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [March 7, 2022, 5:39am UTC](https://community.dynatrace.com/t/exclude-ignore-http-5xx-series-error-with-specific-exception-message/32840/14 "2022-03-07T05:39:48Z")

</div>

Thanks&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

This is exactly What I did.

Whether under the service itself or globally via API, some failures still going up.

Thanks and good day.
