#dobezilla_webhooks

1 messages ¡ Page 1 of 1 (latest)

timid bridgeBOT
#

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

ornate latch
#

Hi there, I saw this event was sent to two webhook endpoints, and both endpoints are connect webhook endpoints

peak ether
#

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.

ornate latch
#

This is a test mode event, did you use the correct secret from the test mode endpoint?

peak ether
#

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

ornate latch
peak ether
#

yes it's that one

ornate latch
#

Try deploy your code again? You'll also want to log the secret to make sure it's the correct one

peak ether
#

I've deployed multiple times and also logged the secret and it is the right one - but I'll try it again now

timid bridgeBOT
rain drum
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

peak ether
#

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?

rain drum
#

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

peak ether
#

ok thanks I'll try that