#tyler_api
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/1356688030814965810
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- tyler_best-practices, 3 days ago, 28 messages
Hi there - having a look
Oh, does it use the timezone configured for the account? Maybe I should set that to UTC?
This will always be UTC - https://docs.stripe.com/api/billing/meter-event/create#create_billing_meter_event-timestamp
hmm
The Stripe times seem off. Looking at this log message:
2025/04/01 18:45:47 Received GitHub webhook event type: pull_request
[ERROR] Request error from Stripe (status 400): {"status":400,"message":"The event timestamp cannot be in future. Expected a timestamp less than or equal to 1743520160.","request_id":"req_IvYOdLGSyo9pTn","request_log_url":"https://dashboard.stripe.com/test/logs/req_IvYOdLGSyo9pTn?t=1743529548","type":"invalid_request_error"}
time=2025-04-01T18:45:48.398+01:00 level=ERROR msg="error handling task" task_id=2953 error="error creating meter event: {\"status\":400,\"message\":\"The event timestamp cannot be in future. Expected a timestamp less than or equal to 1743520160.\",\"request_id\":\"req_IvYOdLGSyo9pTn\",\"request_log_url\":\"https://dashboard.stripe.com/test/logs/req_IvYOdLGSyo9pTn?t=1743529548\",\"type\":\"invalid_request_error\"}"
the timestamp you sent is 1743529548 and we say we expected something less than 1743520160
Oh, nevermind
I was looking at a old one.
So, looking at req_IvYOdLGSyo9pTn
The Stripe UI is showing the time of that event happening at UTC 5:45:48 PM Apr 1, 2025
The error gives says it needs to be before 1743520160, which is April 1, 2025 3:09:20 PM UTC
Yeah, that's right. Testing to see if I can reproduce this
Thanks
Ah, you're using a test clock
Yep! For testing you could just omit timestamp and it would use the frozen time of the clock
Oh, I didn't realize it was optional