Request Replay

Pro

Capture failed or interesting production API requests and replay them with identical headers, cookies, and bodies to debug backend issues locally.

How Request Replay Works

When troubleshooting a rare bug reported by a user or an occasional 500 Internal Server Error, debugging using logs alone is painful.

Request Replay allows you to select any logged request and resend it to your sandbox, staging, or local environment. The replayed request retains the original headers, query parameters, and payload body, allowing you to attach debugger sessions and step through the code.

Triggering a Replay via CLI

Replay an event by ID, optionally overriding the destination host to hit your localhost debug server.

Replay request locally
curl -X POST https://server.edgewrap.pro/v1/projects/prj_01jxyz/replay \
  -H "Authorization: Bearer <your_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "eventId": "evt_01jxyzabc987",
    "targetHost": "http://localhost:8080"
  }'
Warning: Replaying mutating requests (like POST, PATCH, or DELETE) can alter database states. Always run replays against isolated testing databases or staging environments.