#Marques
1 messages ยท Page 1 of 1 (latest)
hello
summary: endpoint works just fine when using "stripe listen" (even from different machines) but doesnt work when using at Stripe Website
Hello ๐
Not sure what you mean by "but doesnt work when using at Stripe Website"
Based on the second screenshot you've provided, it seems like your server is returning a 500 for the attempts Stripe has made for event delivery.
Have you looked into your server logs to see what error is being thrown by your code?
this is the error
Im running the server on the IDE and doing port-forwarding so I can debug
Can you share the complete code?
What function are you catching in the catch block?
Based on the code, it looks like ConstructEvent could be failing.
Are there any other logs than just these? There must be more logs..
why tho? because on stripe listen it works just fine
I get a bunch of errors in the breakpoint, would you like me to show you each?
If not, can you add more logging in your try block to narrow down on what code is throwing an error.
Sure
Stripe CLI webhook secret is different from the webhook endpoint secret
The errors here are quite generic and don't really help much
Can you check if you're using the correct whsec_xxx from the dashboard?
Stripe CLI will have its own webhook secret
hm
this?
It should be under this option on the dashboard
oh wow
so the secret was working for the stripe --listen but not for the other one