Postman Flow - Delay Block

Hi there! I’m wondering if there has been a recent change or not to the delay block for flows.
I was testing a flow I previously built, and the delay block is no longer being initiated.

So, I tried adding an evaluate block to add the delay, but that wouldn’t trigger either. So, I had to add a script to the post-response to the actual request to enforce the delay.

    (async () => {
        await new Promise((resolve) => setTimeout(resolve, 60000));
        console.log("60-second delay completed");
    })();

The request is returning a 200 - so that’s working fine. But I noticed I’m getting an “unexpected end of script” which I haven’t received before.

For context, this request is initiating OAuth to allow users to install an app in their account. I assume the issue is with the request, but that’s behaving as it should, so I’m stuck. Any tips on how I could troubleshoot this? Any insight would be helpful!

Hopefully, I’m overlooking something simple. :crossed_fingers: TY in advance!

1 Like

Hi @hseligson1

Sorry to hear that you’re running into these issues. Could you check the following:

  1. Let me know which version of the application you’re currently on (gear icon in top right → settings → about)
  2. Try deleting and placing the delay block again

I’d love to jump on a call to debug this issue and get you unblocked as soon as possible. I’m going to DM you a link to my Calendar.

1 Like

Thank you! I’ll respond to your message with that information and get some time scheduled for us to review.

Update: The Postman team suggested since I wasn’t using the output of this block - when we changed the parse settings of the block from HTML to Text, it initiated the delay block I couldn’t initiate before.

In the meantime, the bug has been logged and will be addressed. Thank you, @flows-daniel, for the quick support!

Thanks for the feedback @hseligson1 :pray:

1 Like