#dobezilla_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/1350002573943377971
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, I saw this event was sent to two webhook endpoints, and both endpoints are connect webhook endpoints
https://dashboard.stripe.com/test/events/evt_1R2Gx2PAqUdQHxZUtcVf26vX based on the event log, your server returned a 500 error
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you'll want to check your server log and troubleshoot https://support.stripe.com/questions/webhooks-what-to-do-when-the-http-status-code-starts-with-a-four-(4xx)-or-five-(5xx)
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Ah - I thought one was an account one, I'm so stupid! ok but...for the second endpoint that failed I get this error
The expected signature was not found in the Stripe-Signature header. Make sure you're using the correct webhook secret (whsec_) and confirm the incoming request came from Stripe
as far as I can see it's using the correct webhook secret, which I copied from the dashboard.
This is a test mode event, did you use the correct secret from the test mode endpoint?
yes
at Stripe.EventUtility.ValidateSignature(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Int64 utcNow) in //src/Stripe.net/Services/Events/EventUtility.cs:line 170
at Stripe.EventUtility.ConstructEvent(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Int64 utcNow, Boolean throwOnApiVersionMismatch) in //src/Stripe.net/Services/Events/EventUtility.cs:line 143
at Stripe.EventUtility.ConstructEvent(String json, String stripeSignatureHeader, String secret, Int64 tolerance, Boolean throwOnApiVersionMismatch) in /_/src/Stripe.net/Services/Events/EventUtility.cs:line 104
https://dashboard.stripe.com/test/webhooks/we_1R0eoOAZYdif0PBRc908zU8h did you use the webhook secret from this page?
yes it's that one
Try deploy your code again? You'll also want to log the secret to make sure it's the correct one
I've deployed multiple times and also logged the secret and it is the right one - but I'll try it again now
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Ok I discovered the problem, the environment variable on the server had a missing underscore. Thanks for your help @ornate latch !
how would I send a test event to an endpoint on my production environment?
how would I send a test event to an endpoint on my production environment?
You can use your live secret key with your Stripe CLI
https://docs.stripe.com/cli/api_keys
And trigger an Event
ok thanks I'll try that