#SeanLanning1 - local webhooks

1 messages · Page 1 of 1 (latest)

drifting mesa
#

Hello. What errors are you seeing exactly?

delicate marsh
#

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

drifting mesa
#

Are you using the same secret generated by stripe listen in your local webhook handler code?

delicate marsh
#

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

drifting mesa
#

Can you share some screenshots or something? Need a bit more info to help debug

delicate marsh
#

Sure

#

I am not familiar with Discord

#

Can you tell me how to do a screen share

#

?

drifting mesa
#

Not screenshare

#

Just a screenshot

#

You should just be able to paste it in here

delicate marsh
drifting mesa
#

Can you share a screenshot of your webserver running

#

Also verify that the endpoint is correct

delicate marsh
#

I am running in IISExpress within Visual Studio

#

I dont know if this helps

drifting mesa
#

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

delicate marsh
#

Yes

fickle temple
#

Can you relaunch the CLI with debug logs? --log-level debug

#

just to see what it's doing when it gets your event

delicate marsh
#

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?

drifting mesa
#

Yeah just exit out and re-run the command again

#

Are you using the stripe vscode plugin

#

Or just direct executing on the cli

delicate marsh
#

I am using the command line

#

Done

#

Closed and logged back in

#

I forwarded the events again

fickle temple
#

what does "closed and logged back in" mean? Did you do the debug log level I was referring to?

delicate marsh
#

Yes

fickle temple
#

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

delicate marsh
#

I thought the trigger had to come from the CLI

fickle temple
#

sure but you need two terminal windows then

delicate marsh
#

Maybe I am not understanding the proces

#

ok

#

Thats my issue

fickle temple
#

stripe listen is a "background process" basically

delicate marsh
#

ok gotcha

fickle temple
#

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

delicate marsh
#

yes

#

Give me one sec and let me try that

fickle temple
#

of course

delicate marsh
#

I see the "Lestening" icon on the developer dashboard now

#

I see the API calls coming through on the CLI