#Sam_Praveen-Webhook

1 messages · Page 1 of 1 (latest)

bitter tundra
#

Hi there

#

302 indicates a redirect

#

We can't follow redirects with our Webhooks

#

Are you redirecting on your server after forwarding via the CLI?

sweet salmon
#

Well what am I doing in my code let me just tell you.
I have created a POST Route in my code.
Then I created a webhook function and checking the event.
In Terminal, I am running these commands:
./stripe login
./stripe listen --forward-to 127.0.0.1:8000/api/v1/webhooks

And after this I am just making a payment in Stripe.

bitter tundra
#

Huh that is strange to be getting a 302 tbh

#

Can you provide one of the Event IDs above?

sweet salmon
#

ok

bitter tundra
#

So I don't have to type it out from the screenshot

sweet salmon
#

evt_3LGnbyGvtfUGWiic0Ca8hnxb

#

evt_3LGnbyGvtfUGWiic0XiBLUUX

bitter tundra
#

Thanks give me a moment

#

Hmm can you share you webhook code?

#

Nothing looks out of sorts so far

sweet salmon
bitter tundra
#

Ah good catch

#

So yeah you'll need to look at why your Server is doing that

sweet salmon
#

ok let me check it!

sweet salmon
#

Hi.. Do I need to create a GET Route or a POST Route for Webhooks?