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

Events stop being forwarded after a while #1204

Open alexbowers opened 2 weeks ago

alexbowers commented 2 weeks 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

Events stop being forwarded after a while (> 24 hours?) of the Stripe CLI being running.

It's possibly related to laptops going to sleep and disconnecting, but the logs indicate that it's trying to reconnect, but never succeeds.

Expected Behavior

I would expect either on disconnection for the client to connect back up seamlessly, or if the connection was unable to be re-made successfully (perhaps after a few attempts), for the Stripe CLI container to kill its process so that Docker can be used to restart it from scratch.

Steps to reproduce

Setup the stripe CLI in docker, and wait. Eventually it'll stop responding to any messages and the logs will look like the below

Traceback

[evt_3POiAw2Haj5IetJZ1FiorjVo]
Session expired, reconnecting...
Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_9808d13a93dd943f00c8aae145ed8ca3c12... (^C to quit)
Session expired, reconnecting...
Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_9808d13a93dd943f00c8aae145ed8ca3c12c93... (^C to quit)

Environment

alexbowers commented 2 weeks ago

I have seen the following: