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

Northline projectsEngineering
GET /projectsSame refresh action
200 OK[]
Projects0 projects
No projects yetThe refresh returned an empty list.
503 Unavailable
Projects2 cached

Couldn’t refresh projects

  • PMPlatform migrationEngineering · In progress
  • DSDesign systemDesign · In review
Previously loaded projects

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
  1. 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.

  2. 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.

  3. 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.

  4. 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.

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.

Example inputs and caller-owned checks
Your actionAPI conditionYour test checks
Capture or import the caseThe order response includes an empty delivery dateConfirm the recorded status and body are the failing case
Replay against the current clientA matching request receives the reviewed responseObserve the parser failure or incorrect interface state
Run the changed clientUse the same dependency responseAssert the order remains visible with an unavailable estimate
Keep the regression caseRetain the reviewed library and service configurationRun 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 setup

Inspect the synthetic client failure and downloads →

Catch 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.

Example inputs and caller-owned checks
Your actionAPI conditionYour test checks
Identify the baseline sessionThe library reflects the earlier numeric totalKeep the baseline identity and sampled routes clear
Record the current upstreamThe fresh example contains a string totalCheck sample coverage and recording readiness
Compare the two sessionsThe comparison reports the changed field typeReview the event and decide whether it affects the client
Test and refresh deliberatelyThe selected fresh behavior becomes a reviewed test caseUpdate 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 setup

Your next change

Keep the failure understandable while you fix it.

Keep this case with the next change