#anthonyg-webhook-errors

1 messages ยท Page 1 of 1 (latest)

covert canopy
#

looking

#

@novel laurel the error is coming from your own server/code right now, you respond with a 400

novel laurel
#

Hmm my endpoint secret is outdated. Not sure why. I think I see where to go from here though.

covert canopy
#

sounds good

novel laurel
#

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.

covert canopy
#

what is "github codespaces" and why not debug locally? ๐Ÿ˜…

novel laurel
#

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

covert canopy
#

makes sense

novel laurel
#

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!

covert canopy
#

totally fine ๐Ÿ™‚

#

congrats in making signature work in node, it's no small feat

novel laurel
#

Hey so is there a way to clear out all webhooks set to rerun because of failure?

covert canopy
#

no

#

you can re-send them one by one if you need to

#

if you're debugging you would just start fresh

novel laurel
#

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.

covert canopy
#

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

novel laurel
#

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.