Webhook redirection ends with "Scenario failed to complete". How to fix it?

Hello!

I’m trying to redirect user after he/she submits a form on my website to a URL given by a payment processor (it is a payment link). I’m using a wordpress site with Formidable Forms plugins. Unfortunately each attempt to redirect ends with “Scenario failed to complete”.
How to fix it?

The scenario starts with a custom webhook, than make.com performs some API calls and ends with sending a Webhook response.

The webhook response:

And it results in this:
Zrzut ekranu 2024-02-05 214944
(upload://h17C6CH6mPz4MOEXAWu6elSQdla.png)

On my website site after submitting the form I redirect user to a webhook URL:

And all I get is:

How to fix it?
Should I redirect to some other URL after form submitting?
Should I add any parameter to the webhook URL?
Should I add some code on my website to execute te redirection?
Does the redirection starts too fast?

Welcome to the Make community!

Can you take a look at previous failed scenario runs, by going to the History tab below the scenario name?

On the History page, you can see why a particular scenario failed to complete by clicking on the failed scenario “Details” purple button.

Screenshot_2024-02-06_154132

3 Likes

Hi. Thank you for your response @samliew!

I switched the scenario off and on and situation has changed. Now after submitting the form user is redirected to a webhook url with “Accepted” message. No further redirection to a payment link given in a webhook response.

Here are the scenario details:

Scenario:

Webhook response:

Execution:
Zrzut ekranu 2024-02-06 104155

And it results in redirecting user to a webhook url with this message:
Zrzut ekranu 2024-02-06 104239

How to get the redirection work?

Try using a HTTP 307 code – 307 Internal Redirect. Some browsers don’t like the misuse of 301, so the redirect may be blocked on the browser.

3 Likes

It didn’t help :frowning:
Should I add any code snippet to my site to get it work?

Have you tried simply to return some HTML first before trying the redirect? I am wondering if the Webhook Response is being sent back to the browser after your form invokes the webhook?

3 Likes

Alternatively, an alternative would be to return HTTP 200 with an empty webpage with a meta refresh tag that does the redirect.

Screenshot_2024-02-06_220206

<html><head>
<meta content="0; url=https://www.google.com" http-equiv="refresh">
</head></html>
3 Likes

Hi, @samliew, Hi @alex.newpath! Thank you so much for your responses.

I tried the alternative method prompted by @samliew and it didn’t work too. Maybe it means the webhook response isn’t sent back to the browser as @alex.newpath suggested?

The redirection result still looks the same:

Checking the history of scenario execution doesn’t inform me much, because everything looks like it was working:



Zrzut ekranu 2024-02-06 161717

Webhook response data:
Zrzut ekranu 2024-02-06 161526

I tested it with quotation marks too:
Zrzut ekranu 2024-02-06 162939

I wonder if you send the webhook HTTP link right in your browser you’ll get the response but since the webhook is being sent by your form the response may be coming back ot the form submission on the server rather than back to you in the browser.

2 Likes