#reid-webhook-localhost
1 messages · Page 1 of 1 (latest)
reid-webhook-localhost
👋 @narrow atlas nothing specific has changed that I can think of. The first step is to explain what the issue is
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.
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 juststripe listen?
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
it wouldn't hurt to upgrade. You can also try stripe listen --log-level debug to see if anything obvious is explained
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.
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?
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.0Ready! You are using Stripe API Version [2022-08-01]. Your webhook signing secret is whsec****
And then no activity beyond that when triggering events.
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
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
do you still have stripe listen running and you do stripe trigger in another separate terminal?
I was pressing the resent event button in the dashboard.
triggering from the terminal does give activity though
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
- Start
stripe listenand usestripe triggerto trigger specific Events - Start
stripe listenand then use your code to cause Events such as creating a Customer or a Refund
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.