stripe / stripe-cli

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

Repeated printout of `Ready! Your webhook signing secret is …` #630

Closed quinncomendant closed 3 years ago

quinncomendant commented 3 years ago

Issue

After updating to stripe-cli 1.5.13, when it is running, it repeatedly prints this line:

> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (^C to quit)

Screenshot:

Screen Shot 2021-04-16 at 11 49 11

Expected Behavior

It should only print this line once, at startup.

Steps to reproduce

  1. Start it like this:

    stripe listen --forward-to localhost:/path/to/stripe-webhook.php

  2. Let it run for a few hours.

Environment

stripe-cli 1.5.13 on macOS 10.14.6

ianjabour-stripe commented 3 years ago

Hey @quinncomendant, thank you for reaching out about this.

When you've noticed this behavior does the webhook secret change each time?

One thing to note is that it is expected behavior for the CLI to reconnect after a period of time. What is not expected, however, is for a new signing secret to be printed.

quinncomendant commented 3 years ago

Hi @ianjabour-stripe,

The webhook secret stays the same.

If the CLI reconnected occasionally (like once every 24 hours) I wouldn't mind if it informs the user, “Hello, I just reloaded”. But if it is going to reload every few minutes, I would prefer it didn't spam my terminal like this lol:

> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
2021-04-16 19:29:01   --> charge.failed [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:29:02  <--  [200] POST http://localhost/cp/io/stripe.php [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:34:23   --> payment_method.attached [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:34:23   --> customer.source.created [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:34:23   --> payment_method.detached [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:34:23   --> customer.source.deleted [evt_xxxxxxxxxxxxxxxxx]
2021-04-16 19:34:23   --> customer.updated [evt_xxxxxxxxxxxxxxxxx]
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
2021-04-17 11:13:01   --> charge.succeeded [evt_xxxxxxxxxxxxxxxxx]
2021-04-17 11:13:02  <--  [400] POST http://localhost/cp/io/stripe.php [evt_xxxxxxxxxxxxxxxxx]
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
2021-04-17 16:52:06   --> charge.succeeded [evt_xxxxxxxxxxxxxxxxx]
2021-04-17 16:52:07  <--  [200] POST http://localhost/cp/io/stripe.php [evt_xxxxxxxxxxxxxxxxx]
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
> Ready! Your webhook signing secret is whsec_xxxxxxxxxxxxxxxxx (^C to quit)
shreyall commented 3 years ago

Hi @ianjabour-stripe,

I'm new to open source dev and I wanna take on this issue. Do I need to make a Stripe account in order to debug and tackle this issue? Is there a way I could debug without having to make a stripe account?

pepin-stripe commented 3 years ago

Closing becuase this is not happening on the latest