#Sam_Praveen-Webhook
1 messages · Page 1 of 1 (latest)
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?
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.
Huh that is strange to be getting a 302 tbh
Can you provide one of the Event IDs above?
ok
So I don't have to type it out from the screenshot
Thanks give me a moment
Hmm can you share you webhook code?
Nothing looks out of sorts so far
I think the webhooks url is redirecting Stripe to Login page. See this response body:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url='http://127.0.0.1:8000/login'" />
<title>Redirecting to http://127.0.0.1:8000/login</title>
</head>
<body>
Redirecting to <a href="http://127.0.0.1:8000/login">http://127.0.0.1:8000/login</a>.
</body>
</html>
OR check this page: https://dashboard.stripe.com/test/events/evt_3LGnsLGvtfUGWiic0SsqCxk2
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok let me check it!
Hi.. Do I need to create a GET Route or a POST Route for Webhooks?