# How to make message text from api.fail appear in Dynatrace Problem

**URL:** <https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169>\
**Category:** Alerting\
**Tags:** problem-detection, http-monitor, javascript, synthetic-monitoring\
**Created:** [August 27, 2020, 3:19pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169 "2020-08-27T15:19:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chad\_dameworth](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@chad\_dameworth](https://community.dynatrace.com/u/chad_dameworth)\
**Post date:** [August 27, 2020, 3:19pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/1 "2020-08-27T15:19:23Z")

</div>

I’m using JavaScript to validate JSON response from a web page. However, when I call api.fail and supply message text that I expect would appear in the problem, all I see is “Script execution failed on \<Event name\>”. Is there a way to make specific message text to appear in the problem when using custom scripts?

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [September 3, 2020, 4:26pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/2 "2020-09-03T16:26:07Z")

</div>

Hi Chad,

currently this is not possible. There is a new feature being worked on that will allow these messages to be shown in the WebUI and that is expected in Q4 2020/ Q1 2021.

There are also a couple of Product Ideas that you can vote for for this:

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3De11d6ffc-4da9-4e06-8f48-e7d01d443e29&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

> **[Login | Dynatrace](https://sso.dynatrace.com/action/signin?goto=https%3A%2F%2Fsso.dynatrace.com%3A443%2Foauth2%2Fauthorize%2Fredirect%3FoAuth2CtxUuid%3D8dc20822-af0e-4f71-ad75-210625e09b40&oAuth2RedirectUri=https%3A%2F%2Fcommunity.dynatrace.com%2Fauth%2Foauth2callback)**

Best wishes, Hannah

---

<div class="post-metadata">

**Author:** ![NicolasT](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NicolasT](https://community.dynatrace.com/u/NicolasT)\
**Post date:** [December 21, 2021, 2:23pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/3 "2021-12-21T14:23:13Z")

</div>

Solution is not a real solution.

First link suggest we can get if from event, while this is problem which is called for “problem notifications”.

Second should do the trick as well.

Why being able to put “Api.fail” messages and descriptions if not visible in problems ? Non sense.

---

<div class="post-metadata">

**Author:** ![NicolasT](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NicolasT](https://community.dynatrace.com/u/NicolasT)\
**Post date:** [December 21, 2021, 2:45pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/4 "2021-12-21T14:45:27Z")

</div>

Solution is not a real solution.

First link suggest we can get if from event, while this is problem which is called for “problem notifications”.

Second should do the trick as well.

Why being able to put “Api.fail” messages and descriptions if not visible in problems ? Non sense.

---

<div class="post-metadata">

**Author:** ![Viachaslau](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@Viachaslau](https://community.dynatrace.com/u/Viachaslau)\
**Post date:** [June 6, 2023, 4:23pm UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/5 "2023-06-06T16:23:47Z")

</div>

Is it was implemented?

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [June 9, 2023, 10:48am UTC](https://community.dynatrace.com/t/how-to-make-message-text-from-api-fail-appear-in-dynatrace-problem/20169/6 "2023-06-09T10:48:34Z")

</div>

Part 1:  
[https://community.dynatrace.com/t5/Product-ideas/RFE-Synthetics-HTTP-Make-api-fail-message-available-in-UI/idi-p/152828](https://community.dynatrace.com/post/152828)  
was implemented and you can now see the messages in the WebUI.&nbsp;  
Part 2&nbsp;[https://community.dynatrace.com/t5/Product-ideas/Allow-me-to-make-a-Synthetic-HTTP-test-fail-via-JavaScript-pass/idi-p/152118](https://community.dynatrace.com/post/152118)  
making the information available to be shown in the Problem has not. You can vote for the Product Idea [here](https://community.dynatrace.com/post/152118)
