#reid-webhook-localhost

1 messages · Page 1 of 1 (latest)

lost gateBOT
jagged fog
#

reid-webhook-localhost

#

👋 @narrow atlas nothing specific has changed that I can think of. The first step is to explain what the issue is

narrow atlas
#

When I run the command stripe listen --forward-to http://localhost:3000/stripe
I get output saying that I am listening, but then I dont see any event details when I trigger an event.

jagged fog
#

but then I dont see any event details when I trigger an event.
that could mean a slew of different things and I'm going to sadly need a lot more about what the issue is. Like does it work with just stripe listen?

narrow atlas
#

I get the same output, and likewise no activity when I trigger an event.

#

I do see output about upgrading the CLI, to 1.18.0, maybe thats my issue?

#

I am on 1.14.7

jagged fog
#

it wouldn't hurt to upgrade. You can also try stripe listen --log-level debug to see if anything obvious is explained

narrow atlas
#

I see some output that looks normal, and then a series of ongoing ping pongs

#

Should the signing secret in the output match the signing secret of the webhook I am wanting to listen to? It is not the same.

jagged fog
#

hum I worry we're talking about completely different things.
My understanding of your question is that you see nothing on the command line where you run stripe listen. Is that not your question?

narrow atlas
#

when I run stripe listen, I get the following output:

stripe listen
A newer version of the Stripe CLI is available, please update to: v1.18.0

Ready! You are using Stripe API Version [2022-08-01]. Your webhook signing secret is whsec****
And then no activity beyond that when triggering events.

jagged fog
#

Okay so right now you can ignore your code entirely

#

the first step is to figure out why stripe listen doesn't work

#

hence the --log-level debug option to see what happens when you do stripe trigger in another terminal

narrow atlas
#

I don't see any additional output with the debug flag when triggering an event

#

just this over and over:
[Wed, 18 Oct 2023 11:02:26 PDT] DEBUG websocket.Client.writePump: Sending ping message
[Wed, 18 Oct 2023 11:02:26 PDT] DEBUG websocket.Client.readPump: Received pong message

jagged fog
#

do you still have stripe listen running and you do stripe trigger in another separate terminal?

narrow atlas
#

I was pressing the resent event button in the dashboard.

jagged fog
#

yeah that won't work

#

use stripe trigger

narrow atlas
#

triggering from the terminal does give activity though

jagged fog
#

the resend is only resend to the endpoints that were listening for it at the time, not your new instance of stripe listen

#

so you either

  1. Start stripe listen and use stripe trigger to trigger specific Events
  2. Start stripe listen and then use your code to cause Events such as creating a Customer or a Refund
narrow atlas
#

Gotcha! I was under the impression that it would listen to any and all events, including resends that were not listened for originally. Thank you for clearing this up for me.