Menu

Debug a GitHub webhook that never reaches localhost
πŸ“°

Debug a GitHub webhook that never reaches localhost

DEV Community: githubΒ·Valentin BereaΒ·4 days ago
#9kLxmLrV
#devtogithub#technology#devto#dev#github
Reading 0:00
15s threshold

You're building a webhook handler. It runs on localhost:3000 . GitHub needs a public HTTPS address to send to, so the delivery never arrives, and you're writing your handler against the JSON sample in the docs instead of what GitHub really sends.

Here's a way to get the real delivery onto your machine, headers and body intact, without a tunnel and without installing anything.

1. Get a public address that records everything

Open curler.dev and click Create a bin . The top bar shows a capture URL like:

https://api.curler.dev/h/fZU_aI73r6LZkEr4eThskAPiWwXaXa

Enter fullscreen mode

Exit fullscreen mode

Anything sent to that address, or to any path below it, is recorded: method, path, headers and the raw body.

2.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.