#kaveeshamuthukuda_webhooks

1 messages · Page 1 of 1 (latest)

zenith wyvernBOT
#

👋 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/1331104586097754133

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

delicate cipher
#

Im using API Version 2024-09-30.acacia

wet pendant
#

hello! Have you checked your server if it has time drift? https://docs.stripe.com/webhooks#replay-attacks - Generally our libraries have a default tolerance of 5 minutes between the Stripe Signature header timestamp and the current time.

delicate cipher
#

Does stripe use UTC time or something else?

wet pendant
#

we use the unix timestamp

delicate cipher
#

Usuallyb where do we have to mention the tolerance im using dotnet and in y controller I havent mentioned anything about tolerance just wanted to make sure if I have done this :Common mistake
Don’t use a tolerance value of 0. Using a tolerance value of 0 disables the recency check entirely.

zenith wyvernBOT
cloud brook
delicate cipher
#

Stripe exception: The webhook cannot be processed because the current timestamp is outside of the allowed tolerance .how can I get this fixed

cloud brook
#

As Alex explained earlier, you should work your engineer to fix the time drift problem in your server.

delicate cipher
#

what the time zone you'll use is it UTC,IST ...?

cloud brook
#

All Stripe timestamps are in UTC.

delicate cipher
#

ok untill I talk with our devops can you please keep the chat open

#

Our server seems to be in UTC and there seems to be no time drift

cloud brook
#

Can you run date -u in your server and check its current timestamp?

delicate cipher
#

Found the issue the webhook works correctly on my dev server and not qa server

#

the qa server is 6 minutes behind

#

Thank you so much for the guidance!!