#mikeg_webhooks
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/1318370517035520000
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Can you give me the Event ID in question? It's the ID that starts with evt_.
evt_1QWnZXBBmwfcR9ixZ7Kb0VEp
Looks like we've tried to deliver that one twice and got a 500 error response back both times.
Here are two entries from the "Access Log" on my server:
laleham-recreation-ground.org.uk 54.187.205.235 - - [16/Dec/2024:12:32:33 +0000] "POST /webhook.php HTTP/1.1" 200 - "-" "Stripe/1.0 (+https://stripe.com/docs/webhooks)" [IP address is from Stripe]
laleham-recreation-ground.org.uk 54.187.216.72 - - [16/Dec/2024:23:19:32 +0000] "POST /webhook.php HTTP/1.1" 500 - "-" "Stripe/1.0 (+https://stripe.com/docs/webhooks)" [IP address is from Stripe]
Yep, that seems normal. The next step is to check other logs on your server to determine why you're responding to our Event delivery request with a 500 error response.
Note the differing response codes and IP addresses
Usually that happens when your webhook handling code throws an unhandled exception.
The different IPs are normal. See here: https://docs.stripe.com/ips#webhook-notifications
You can also see details about our attempts to deliver this Event in your Dashboard here: https://dashboard.stripe.com/test/events/evt_1QWnZXBBmwfcR9ixZ7Kb0VEp
Yes, I have seen that. But the logging shows that webhook.php was not entered later in the day, and the code at no point returns 500.
Have you checked your PHP error log?
PHP will return a 500 response if it encounters an unhandled exception.
A very good suggestion, thank you. It looks like I changed one character in the PHP without realising it. I'm new to Discord, how do I close this thread?
You don't need to worry about closing it, we close idle threads automatically after a while.
Thanks very much, and goodbye.
Happy to help!