#SeanLanning1 - local webhooks
1 messages · Page 1 of 1 (latest)
I am just seeing nothing come into API running locally
I followed the instructions
Installed the CLI
Logged in
User Stripe Listen
got my secret and then triggered an event
I see the event in the Web Dashboard, but No request ever came to my localthost
Are you using the same secret generated by stripe listen in your local webhook handler code?
Yes, and in the portal it even says step 1 and 2 completed
It says Logged in on my Desktop machine name
And listening for events
Can you share some screenshots or something? Need a bit more info to help debug
Sure
I am not familiar with Discord
Can you tell me how to do a screen share
?
Can you share a screenshot of your webserver running
Also verify that the endpoint is correct
Ok try this. Just use postman or curl or whatever tool of your choice and try to hit your localhost endpoint (the same one that you are forwarding events to)
Can you reach that endpoint? Errors are fine
Just want to see that your server is running fine and that that's the correct endpoint configured
Can you relaunch the CLI with debug logs? --log-level debug
just to see what it's doing when it gets your event
How do I relaunch the CLI
Do I need to just close the comand window and log in again?
Can I ask one different question. I am attempting to test this Listener with actual Stripe Payloads. Is there any way to get around using the signature in the ConstructEvent call?
Yeah just exit out and re-run the command again
Are you using the stripe vscode plugin
Or just direct executing on the cli
I am using the command line
Done
Closed and logged back in
I forwarded the events again
what does "closed and logged back in" mean? Did you do the debug log level I was referring to?
hum
you do the listen and then you seem to immediately kill it?
like you listen, then ctrl+c and then do trigger or something
I thought the trigger had to come from the CLI
sure but you need two terminal windows then
stripe listen is a "background process" basically
ok gotcha
Can you have a terminal that runs and explicitly listens and stays running? And then cause a real event (not a stripe trigger to happen on your Stripe account like for example you create a new customer and you listen to customer.created events
of course