stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.57k stars 362 forks source link

Pressing ^C dosent stop the webhook listeners #1059

Open aliasgar55 opened 1 year ago

aliasgar55 commented 1 year ago

The more information we have the easier it is for us to help. Feel free to remove any sections that might not apply

Issue

When using listen command for listen for the web-hook events, if we close the listener using ^C the listener dosent close immediately

Expected Behavior

Pressing ^C stripe listen command should stop listening for the webhook events

Steps to reproduce

What are the steps we can take to reproduce this and verify it's fixed? Run command stripe listen --forward-to localhost:8000/webhook Press ^C Check the stripe dashboard the webhook shows as listening You will keep on receiving the events on your localhost

Environment

Select one of: macOS, Linux, Windows, Other

tomer-stripe commented 1 year ago

Hi @aliasgar55! The dashboard has a 10 minute lag to update from hitting ^C in the CLI. As long as the CLI has stopped running on your device you should be good