#xfechx-webhooks

1 messages · Page 1 of 1 (latest)

bleak valve
#

hi there! how can we help?

leaden blaze
#

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

flint nacelle
#

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.

leaden blaze
#

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

flint nacelle
#

Can you share the webook URL that is returning 301?

#

Or the webhook ID (we_xxx)?

leaden blaze
#

One sec

#

evt_3L60wzABIsA579c61JU4TbEv

#

The webhook url

craggy heath
#

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

leaden blaze
#

Ahhh

#

I see

#

yes, nginx does redirects automatically for www to non-www

#

well the certbot