Troubleshooting Replay Mismatches
Symptoms
- Replay returns "no matching recorded pair" errors
- Wrong recorded response returned
- Replay works for some requests but not others
Solutions
Matching Strategy
Check your replay matching strategy in proxy settings:
| Strategy | Requirements |
|---|---|
| Exact | Method + path + query + body must match perfectly |
| Relaxed | Method + path match only |
| Custom | Your defined rules |
If using Exact matching, minor differences in query params or body will cause mismatches.
Request Body Differences
Dynamic values (timestamps, UUIDs) in request bodies cause exact matching to fail:
- Switch to Relaxed matching, or
- Add custom matching rules that ignore dynamic fields
Sanitization Issues
If sanitization rules modify recorded data too aggressively:
- Review sanitization rules in the recording session
- Ensure template variables are resolving correctly
- Test with sanitization disabled to isolate the issue