#mikeg_webhooks

1 messages ¡ Page 1 of 1 (latest)

dire elkBOT
#

👋 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.

kind needle
#

Hello! Can you give me the Event ID in question? It's the ID that starts with evt_.

wild comet
#

evt_1QWnZXBBmwfcR9ixZ7Kb0VEp

kind needle
#

Looks like we've tried to deliver that one twice and got a 500 error response back both times.

wild comet
#

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]

kind needle
#

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.

wild comet
#

Note the differing response codes and IP addresses

kind needle
#

Usually that happens when your webhook handling code throws an unhandled exception.

wild comet
#

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.

kind needle
#

Have you checked your PHP error log?

#

PHP will return a 500 response if it encounters an unhandled exception.

wild comet
#

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?

kind needle
#

You don't need to worry about closing it, we close idle threads automatically after a while.

wild comet
#

Thanks very much, and goodbye.

kind needle
#

Happy to help!