#Barış Yıldırım
1 messages · Page 1 of 1 (latest)
Hi there,
Could you please share your accountId and the webhook id ?
account id: acct_1LRtzRC2yFXwnFoO
webhook id: we_1LwLjJC2yFXwnFoOnwcX3XjU
thanks for sharing let me take a look
Thank you
It look like your endpoint is not responding successfully to the events. Here is some example:
https://dashboard.stripe.com/events/evt_1LwLbLC2yFXwnFoOhK14lw50
Refer to the Webhook attempts section for more details
Thank you
Actually the api exists and receives POST requests as expected.
it works in dev environment. Can you monitor that what is wrong with my API endpoint
I just tested your endpoint, now it responds, but it looks like it didn't responded earlier, your endpoint responded with:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.0</center>
</body>
</html>
Try to analyse the logs of that nginx and see what's causing the Bad Gateway exception
If it works now, why it is still saying 'No webhook attempts in the past 15 days.'
The server is live for 3 months and we do not have any api problems except from this one.
When Stripe sent the webhook event at 2022-10-24 08:01:40 UTC
Your endpoint responded with 502 Bad Gateway Did you check your Nginx proxy logs?
In the link I shared above, you can see the two failed attempts
https://dashboard.stripe.com/events/evt_1LwLbLC2yFXwnFoOhK14lw50
Do you have connect accounts ?
I'm sorry I don't know what is connect accounts
Did you created a webhook and deleted it earlier ?
Yes I did when I try to test webhooks
The event I shared was delivered to this webhook Id we_1LwLU4C2yFXwnFoOTAGSUJoJ but I'm seeing that it was deleted at 2022-10-24 08:02:02 UTC
Do you want me to create new event? And I'll keep the webhooks as it is
For the new webhook, there is no event triggered after its creation
Yeah try to create a new event
When I came to checkout.session page it should create new event right?
You need to complete a checkout session in order to trigger an event
How can I complete an event without making payment
Your webhook is listening to this event customer.updated Try to update a customer
Ah now it works. Thank you a lot
I thought I was triggering when I create a session.
Glad to hear that 🙂
🙂
just a quick question. When I create webhook, which one should I select. I need to update users at my database when they make payments.
As you're not using Stirpe Connect for now, keep the first option checked.
For more your curiosity, here is a guide throw Stripe Connect:
https://stripe.com/docs/connect
But for now keep that Option