#anthonyg-webhook-errors
1 messages ยท Page 1 of 1 (latest)
looking
@novel laurel the error is coming from your own server/code right now, you respond with a 400
This is the error I'm getting:
Webhook signature verification failed. No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing
Hmm my endpoint secret is outdated. Not sure why. I think I see where to go from here though.
sounds good
Ahhh it's some issue with github codespaces not updating my secret when I changed the webhook just a minute ago. It's still got the old secret stored for some reason.
what is "github codespaces" and why not debug locally? ๐
It's a virtual machine dev enviornment that provides remote access via vs code and local development enviornment with port forwarding, etc. It's pretty sweet, except for this problem with the secrets that I'm having! hahaha
makes sense
No code stored locally, no local dependency management, access from anywhere on any machine via vs code or browser. Check it out sometime. Anyway, this secret thing is totally killing my flow here!
Ha! I just needed to shutdown and restart the machine for the new secret to update.
Thanks and sorry to bug you!
Hey so is there a way to clear out all webhooks set to rerun because of failure?
no
you can re-send them one by one if you need to
if you're debugging you would just start fresh
Seeing that link you sent. Yeah, working with bodyparser is a bit tricky. I feel like I saw that it's being deprecated at some point or something. I'm not using it.
Can you clarify on "if debugging you would just start fresh"?
So if I manually resend the events, they still show up as retrying after also showing that the retry succeeded.
Like you're debugging, you shouldn't need to handle failed/dropped events from an hour ago right? You should be able to just re-run code to create new events
Yeah, the old ones keep hitting my debugging code though I think while I'm trying to work with the new events. Or maybe I've got it wrong.