Answered

What is the webhook response Erorr 302?

  • 13 October 2021
  • 5 replies
  • 1156 views

Userlevel 1
Badge

Hi there,
I have created a typeform with webhook integeration. I have embedded the form in my website. I am getting an error with error code 302 as a webhook response.


Can anyone please explain what’s the meaning of that error and what is the solution to fix that?

Thanks!

Here you can see the Response Header

 

icon

Best answer by mathio 13 October 2021, 11:45

View original

5 replies

Userlevel 7
Badge +5

Hello @Suraj Rai 

the 302 HTTP status code is coming from your webhook, not from typeform.

Based on the response my guess is you did not use HTTPS in the URL and your Wordpress page is set up to always redirect to HTTPS URL. Updating your webhook URL to use HTTPS might help.

Userlevel 1
Badge

Hi @mathio 
Thanks for your help. But I’m already using https in my webhook URL and still the the 302 HTTP status code is coming.

 

Userlevel 7
Badge +5

It looks like your webhook URL is doing a 302 redirect. This sees to be an issue with your service, not typeform.

Can you share your webhook URL, maybe I can have a look?

Userlevel 1
Badge

Okay!
Sure. Here is the webhook url: https://warmup.mycrush.fit/wp-admin/admin-post.php?action=fitness_assessment

Userlevel 7
Badge +5

It looks like your URL might require you to login to access it since has wp-admin in it.

When I try making a POST request to your URL via Postman I get 302 response too with Location: https://warmup.mycrush.fit header which redirects me to your landing page.

I think you need to expose your webhook endpoint and make sure it is accessible from the outside world (eg. by Typeform). If you need to secure the endpoint you can setup a secret - see the help article on Webhooks.

Reply