コンテンツにスキップ
#0146
CurlExecFiles

Replay last week's webhooks against the new endpoint

You're rewriting the webhook handler. You want to test it against real payloads, not synthetic ones. Last week you set the inbound webhook handler: an exec script: to write every incoming body to a file under /hoody/storage/, named by timestamp. A week's worth of real traffic is sitting on disk.

You write a script that loops the saved files and fires each one as a new curl request to the new staging endpoint, async, with retries. Every replay lands as its own job; the response comes back as a job result; the new handler's behavior on every shape of last week's traffic is sitting in /api/v1/curl/jobs an hour later.

When something fails on a particular payload, you re-fire that one job until you've fixed the bug.

The integration's history is a folder you can re-run.