#kinder_webhooks

1 messages ¡ Page 1 of 1 (latest)

cyan raptorBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1262599267072213004

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

dense tundra
#

Um it supposes to work. If you forward to a simpler path (ie http://localhost:3009 only) would you see anything from your server?

#

It will be 404 if your server received it but couldn't find any path

stoic kite
#

i also have this:
app.use((req, res, next) => {
console.log("message received")
next();
})
soo that i can see any request regardless of the path and the message received is never printed for the trigger events but i will try with http://localhost:3009/

#

stripe listen --forward-to http://localhost:3009/

Ready! You are using Stripe API Version [2024-06-20]. Your webhook signing secret is whsec_5da0752b83dc2bf5b4c41af11a884d9cb024d53987b70204b1ae1fe672aed851 (^C to quit)

C:\Users\Francisco Lima>stripe trigger invoice.payment_succeeded
Setting up fixture for: customer
Running fixture for: customer
Setting up fixture for: payment_method
Running fixture for: payment_method
Setting up fixture for: invoiceitem
Running fixture for: invoiceitem
Setting up fixture for: invoice
Running fixture for: invoice
Setting up fixture for: invoice_pay
Running fixture for: invoice_pay
Trigger succeeded! Check dashboard for event details.
and on the server i have :
app.post('/', express.raw({type: 'application/json'}), (req, res) =>{
console.log("logging")

} )

dense tundra
#

Yes I know but your server console log, do you see anything?

stoic kite
#

nope : / nothing

dense tundra
#

What does it output on your local server? Could you screenshot that terminal?

stoic kite
#

on the cmd i did this:

#

and the server remained the same:

dense tundra
#

Ok, let's try to curl your own server, completely different from stripe cli

stoic kite
#

on the cmd

#

on node

#

this is the right one:

dense tundra
#

That's weird... Okie when you listen and forward, then trigger an event, did the listening terminal print something?

#

I mean you need to open 2 terminals

#

one for listening, and keep it that way

#

and trigger on another terminal