#xfechx-webhooks
1 messages · Page 1 of 1 (latest)
I am getting a 301 error moved permanently. This hasnt happened to me before
I migrated the app backend to another server
*getting the error in the webhook listener
Hi! I'm taking over alex-stripe
Can you share the event ID (evt_xxx)?
But in general, if Stripe tries to reach your server and it returns a 301 redirect, then Stripe won't follow the redirect and will return an error. Your webhook URL should have no redirects and return a 200 response for it to work.
Yes
This never happened before, I migrated the website to another server
Not sure why it is adding a 301 if I didnt explicitly added that in nginx
looks like your server is redirecting to https://www.nakawetrading.com/stripe/listener/ (note the www.). We don't follow redirects for webhooks so that's treated as a failure
easy fix would be to go to your Stripe dashboard and change the URL for that endpoint in your settings to the www version instead