Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event Order #1191

Open
zhoub opened this issue May 23, 2024 · 0 comments
Open

Event Order #1191

zhoub opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zhoub
Copy link

zhoub commented May 23, 2024

Issue

Using stripe version 1.19.5.

For 2 events, customer.subscription.created and customer.subscription.updated,

2024-05-23 15:54:05   --> customer.subscription.created [evt_1PJVXNBzH5DDPixH6s1mtfkF]
2024-05-23 15:54:05   --> customer.subscription.updated [evt_1PJVXNBzH5DDPixHId5cNSFm]
2024-05-23 15:54:05  <--  [200] POST http://localhost:10000/v1/stripe/webhook/process [evt_1PJVXNBzH5DDPixHId5cNSFm]
2024-05-23 15:54:05  <--  [200] POST http://localhost:10000/v1/stripe/webhook/process [evt_1PJVXNBzH5DDPixH6s1mtfkF]

Strip Cli receives 2 events with correct order, created event then updated event. But it forwards the events with reversed order.

Expected Behavior

Should be

2024-05-23 15:54:05  <--  [200] POST http://localhost:10000/v1/stripe/webhook/process [evt_1PJVXNBzH5DDPixH6s1mtfkF]
2024-05-23 15:54:05  <--  [200] POST http://localhost:10000/v1/stripe/webhook/process [evt_1PJVXNBzH5DDPixHId5cNSFm]

The event order at Dashboard is correct.

Steps to reproduce

Use Stripe Dashboard to create a period product, then use Stripe CLI to listen to the events, create a checkout session from web UI.

Traceback

No

Environment

macOS + stripe version 1.19.5

@zhoub zhoub added the bug Something isn't working label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant