Synthetic Monitoring
Browser monitors, HTTP monitors, synthetic locations.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timeout Handling in HTTP Monitor Request

Rajesh01
Newcomer

We are testing multiple endpoint requests defined in a HTTP monitor. 

Some of the endpoints will take longer but will complete. The current hard limit of 60 sec is not suitable for us.

Alternatively, we are looking to handle this in post execution script and mark it as success in case this fails with timeout error. 

"postProcessingScript": "api.info(response.getStatusCode())

if (response.getStatusCode() == 0) {api.finish(true, \"Timeout treated as success");}"

Also, the return code validation condition is set to >=400 . 

Still the HTTP request is marked as Failed because of the timeout. Any other alternative way to treat this as success and move on.

1 REPLY 1

HannahM
Dynatrace Guru
Dynatrace Guru

It's only status codes that can be ignored in the way you're trying; network errors, timeouts, etc can't be ignored. This would be a Product Idea 

Synthetic SME and community advocate.

Featured Posts