#Switty

1 messages · Page 1 of 1 (latest)

cerulean vaultBOT
ancient silo
#

can you share more context? is this you making a request to Stripe that is 400'ing?
Or a webhook endpoint from Stripe to you (and your code is returning a 404)

simple rock
#

It's a webhook endpoint

#

Those console logs don't print either

#

Everything works until the webhook part. I've set up my domain which points at my server's address. Also have a "Let's Encrypt" SSL implemented with certbot

#

So All my traffic is going through the SSL.

ancient silo
#

so the first thing to make sure is that your webhook endpoint is being hit. So whatever your webhook endpoint is, just make sure that Stripe can hit it and your server logs something simple like "hello I received a request"

simple rock
#

It's not getting hit. I did put a print there but nothing happens.

ancient silo
#

can you share an Event ID with me, one you expected to hit your webhook endpoint?

simple rock
#

Yes

#

payment_link.created

ancient silo
#

the Event ID like evt_123

simple rock
#

req_N5gtTYqeO50kSm

#

Oh sorry this one

#

evt_1LkY0yGd7U4Sf1APOJEXPHEH

ancient silo
#

looking

#

is your endpoint up and running? a 404 means it might not be up

#

like can you make a POST request to your own endpoint

#

and see the caca log in there?

#

in your server logs?

simple rock
#

Now it's not up. I'll try now

#

No print in console in server

#

But it should be working, my server is up and even the port is open. I can ping it

ancient silo
#

yeah so that is something you'd have to investigate on your end, not sure entirely why but basically your /webhook endpoint isn't up

simple rock
#

Ok. Thank you for your time!