cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

chad_dameworth
Newcomer

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?

1 REPLY 1

HannahM
Dynatrace Pro
Dynatrace Pro

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:

https://answers.dynatrace.com/idea/242001/allow-me-to-make-a-synthetic-test-fail-via-javascr.html

https://answers.dynatrace.com/idea/243683/rfe-synthetics-http-make-apifail-message-available.html

Best wishes, Hannah