Bring the API condition behind a failure into view.
Keep the HTTP behavior behind an integration failure so your team can reproduce what the customer saw and check the fix. When the symptom crosses a callback or live WebSocket connection, use the evidence from that boundary.
Find why a project list sometimes goes blank
GET /projectsSame refresh action[]Couldn’t refresh projects
- PMPlatform migrationEngineering · In progress
- DSDesign systemDesign · In review
When to use it
The next successful request does not explain the failure.
Start with a visible symptom and a boundary you can inspect. Two screens that look the same may reflect an upstream failure, stale cache data or a client that interpreted a valid response incorrectly.
What to check
- Customer symptom
- A project refresh replaces the previously loaded list with “No projects.”
- Boundary evidence
- The failing refresh receives HTTP 503. A separate HTTP 200 response with an empty list is the control.
- Application check
- On 503 the client keeps the loaded list and reports a refresh failure. On 200 with an empty list it shows a real empty state.
How to approach it
Debug API integrations
4 steps
- Gostly Record & Replay
- Gostly Webhook Tools
- Gostly Drift Detection
Record the symptom and the request that could explain it
Record the customer action, the client version and the request sequence. Look for a fact that distinguishes candidate causes, such as the status and body the caller received or the deadline that elapsed before a response.
Retain the smallest shareable exchange
Capture approved HTTP traffic or author a case that supplies the same observable input. Review sensitive request and response fields before retaining it. For callbacks, inspect the stored delivery before resending one attempt. For WebSockets, observe frames with the live dependency connected.
Reproduce from the same application state
Route the relevant client through the prepared case. Begin with the project list already loaded, trigger the refresh and match the application event to the actual response. If the expected input arrives without the symptom, check cache state and request order before changing the fixture.
Check the fix against both paths
Run the failure case again with the correction, then check the successful empty control. Keep the input, expected behavior and assertion with the change. Compare a fresh recording separately if you need to see whether the upstream still behaves the same way.
What this gets you
Keep the failing input alongside the fix
The client has one check for the unavailable service and a separate control for a successful empty list. Both travel with the fix.
What the check tells you
A retained exchange can establish what the caller received in the captured case. Replaying it lets you test a client response to that input. A fresh capture is needed to check the current upstream, and the symptom can still depend on application state.
Where Gostly fits
Callback replay sends one explicit delivery attempt, and the receiver may reject old signatures. WebSocket capture observes a live connection. Use drift indicators to find changes and application checks to determine their impact.
Put it into practice
- DocsInspect a saved bug reproductionCompare a broken and corrected client against the same reviewed response.
- DocsCompare a fresh capture with a baselineInspect response differences before deciding whether to update a library.
- DocsInvestigate a captured webhook deliveryInspect the request and prepare a deliberate replay attempt.
More worked examples
Compare sample API conditions with the checks your application can run.
Reproduce an API integration bug locally
Authored worked example · synthetic data
An empty delivery date breaks the order screen
The example order has a valid identifier and total, with an empty delivery date. The question is whether your client can still show the order and explain that a delivery estimate is unavailable.
| Your action | API condition | Your test checks |
|---|---|---|
| Capture or import the case | The order response includes an empty delivery date | Confirm the recorded status and body are the failing case |
| Replay against the current client | A matching request receives the reviewed response | Observe the parser failure or incorrect interface state |
| Run the changed client | Use the same dependency response | Assert the order remains visible with an unavailable estimate |
| Keep the regression case | Retain the reviewed library and service configuration | Run the assertion with the next application change |
A response recording does not capture your entire application state. Re-create relevant database records, session state and client timers in your own test setup.
Record and replay setupCatch changes in the API behind your mocks
Authored worked example · synthetic data
An order total changes from a number to a string
The synthetic baseline uses a numeric order total. A fresh example of the same route uses a string. The shape change is a reason to inspect the client contract, not automatic proof that the application is broken.
| Your action | API condition | Your test checks |
|---|---|---|
| Identify the baseline session | The library reflects the earlier numeric total | Keep the baseline identity and sampled routes clear |
| Record the current upstream | The fresh example contains a string total | Check sample coverage and recording readiness |
| Compare the two sessions | The comparison reports the changed field type | Review the event and decide whether it affects the client |
| Test and refresh deliberately | The selected fresh behavior becomes a reviewed test case | Update the client or library, then run the affected assertions |
This compares selected recording sessions; it is not a continuous crawler of every upstream endpoint. You supply representative traffic and choose the session pair.
Drift comparison setupYour next change