# Forced waiting for next step in HTTP Monitor

**URL:** <https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378>\
**Category:** Synthetic Monitoring\
**Tags:** http-monitor\
**Created:** [March 1, 2024, 9:38am UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378 "2024-03-01T09:38:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SabineR](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@SabineR](https://community.dynatrace.com/u/SabineR)\
**Post date:** [March 1, 2024, 9:38am UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378/1 "2024-03-01T09:38:43Z")

</div>

Hello,

I developped an HTTP monitor.

In one step, I have to wait a few seconds before doing the next HTTP requests, and I have 2 issues:

1. Contrary to Browser monitors, we don’t have the option “ **Amount of time to wait before the next event is triggered** ”

Are you planning to add it?

2. The only way I found to do a wait, was to use some not great Javascript codes.

And I got another issue: if I put more than 1000 ms, I obtain a **Script execution&nbsp;timeout error**.

I tried to change the option “ **Adapt request timout** ” to 10s (which is normally already the case).

But It doesn’t work too: I don’t know why, but the step can’t take more than 1 second.

Is it a bug? Or is this restriction registered in another settings in Dynatrace?

If yes, where?

Many thanks in advance for your answer,

Kind Regards,

Sabine

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [March 1, 2024, 10:36am UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378/2 "2024-03-01T10:36:14Z")

</div>

1) I am not aware of any plans to add a wait option for HTTP Monitors.

2) There are some suggestions [here](https://community.dynatrace.com/post/126083)&nbsp;for inserting a wait.&nbsp;  
As you found the default timeout out for a pre- or post-execution script is 1s, so using the

```auto
https://postman-echo.com/delay/2

```

suggestion gets around this by using another request which you can adapt the timeout up to 60s.

We are planning to make the&nbsp;pre- or post-execution script timeout be modifiable (up to 10s). This is currently part of a preview, so if the postman alternative is not suitable you can speak to your CSM or Sales Exec about joining the HTTP Monitors Advanced Settings preview.

---

<div class="post-metadata">

**Author:** ![SabineR](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@SabineR](https://community.dynatrace.com/u/SabineR)\
**Post date:** [March 1, 2024, 1:08pm UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378/3 "2024-03-01T13:08:23Z")

</div>

Thank you Hanna

---

<div class="post-metadata">

**Author:** ![eleone88](https://avatars.discourse-cdn.com/v4/letter/e/a587f6/32.png) [@eleone88](https://community.dynatrace.com/u/eleone88)\
**Post date:** [July 18, 2024, 5:50pm UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378/4 "2024-07-18T17:50:51Z")

</div>

The only ‘solution’ that I could find re: a delay between steps in Dynatrace Synthetic Monitor is using&nbsp;[https://postman-echo.com/delay/2](https://postman-echo.com/delay/2). How/where do I use this, as a pre- or post-execution script, or as an HTTP standalone request between the two requests where a delay is required? How should it be configured/written within the request? I tried adding it as the latter, but it consistently fails with&nbsp;SSL\_COMMUNICATION\_ERROR.

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![hannahmac](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [July 19, 2024, 9:10am UTC](https://community.dynatrace.com/t/forced-waiting-for-next-step-in-http-monitor/44378/5 "2024-07-19T09:10:54Z")

</div>

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

requests cannot be added to pre- or post-execution scripts. The way to add the wait is to add another HTTP request in between the other 2. You need to set the request url to be&nbsp;[https://postman-echo.com/delay/2.](https://postman-echo.com/delay/2)

 ![HannahM_0-1721380242773.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/9/a95318369e5d487dda84e441f13d6c4f0df64579.png)
