#ferx_api
1 messages · Page 1 of 1 (latest)
👋 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/1390323979595546775
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello do you have the ID of specific events that you have seen see these behaviors (not being sent at all, being sent two hours later, saying failed despite your endpoint responding with a 200)?
I'm not entirely sure what's going on, because Stripe takes too long to send the event to my endpoint. For example, we can look at this event_id: evt_1RgdFg02n7LzOZO82yihgtJP.
When I create the session_id, this is what appears in my backend logs:
INFO: 127.0.0.1:51409 - "POST /payments/stripe/obtain-plan HTTP/1.1" 200 OK
2025-07-03 07:40:19,797 - 19868 - stripe.py-stripe:101 - INFO: [Obtain Plan] Metadata sent to Stripe: {'user_id': '00000_prueba', 'plan_type': 'foundation_plan', 'extra_seats': '1', 'payment_type': 'PLAN_PURCHASE'}
2025-07-03 07:40:19,800 - 19868 - _util.py-_util:128 - INFO: message='Request to Stripe API' method=post url=https://api.stripe.com/v1/checkout/sessions
2025-07-03 07:40:20,784 - 19868 - _util.py-_util:128 - INFO: message='Stripe API response' path=https://api.stripe.com/v1/checkout/sessions response_code=200
INFO: 127.0.0.1:51894 - "POST /payments/stripe/obtain-plan HTTP/1.1" 200 OK
When I create my checkout_url using the obtain-plan endpoint and complete the test payment, nothing else happens. Stripe never shows any attempt to reach the webhook or make a POST request to /payments/stripe/webhook.
However, when I manually resend an event from the Stripe dashboard, I do see the following:
INFO: 3.130.192.231:0 - "POST /payments/stripe/webhook HTTP/1.1" 500 Internal Server Error
(Don’t worry about the 500 error; I just want to clarify that there is a connection when I resend events manually.)
Our logs show that we've sent the event to that endpoint automatically 3 times and got 500s each time
We show the attempts on the event's dashboard page if that helps
https://dashboard.stripe.com/test/events/evt_1RgdFg02n7LzOZO82yihgtJP
There were attempts to send the event at 9:51, 10:50, and 12:52 (UTC+7). Looking a bit more
It looks like that checkout session succeeded at 2:51:54 UTC and the first event was sent two seconds later at 2:51:56 UTC. We got a 500 error and a specific error message about webhook signature verification back to your endpoint, so it looks like your code around verifying the signature has an issue
We have this guide on resolving that error if that helps https://docs.stripe.com/webhooks/signature
Thank you so much. Let me give it a try