What is the webhook response Erorr 302? | Community
Skip to main content
Answered

What is the webhook response Erorr 302?

  • October 13, 2021
  • 5 replies
  • 1820 views

surajsanwal
Forum|alt.badge.img

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

 

Best answer by mathio-tf

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.

View original

mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • October 13, 2021

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.


surajsanwal
Forum|alt.badge.img

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.

 


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • October 13, 2021

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?


surajsanwal
Forum|alt.badge.img

mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • October 13, 2021

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.