Pcornel
Automation · Automation Troubleshooting

API Failure

Cheat sheet · https://pcornel.dk/topic.php?topic=6049

Back to the Topic

Answer

API Failure isolates automation problems across endpoint/version discovery, DNS/TLS, authentication, authorization, request construction, server processing, asynchronous task state and target read-back.

Remember

  • HTTP response received ≠ API operation succeeded.
  • 2xx accepted ≠ asynchronous operation completed.
  • Valid token ≠ caller is authorized for the resource.
  • API object updated ≠ downstream workload accepted the change.

First checks

  • curl -v <api> — full exchange
  • API status page/health — provider side
  • Request ID in response — support

Commands

curl -sS -D - -o /dev/null <url>
Read-only/validation observation for HTTP/TLS/connectivity status and response headers from a documented read-only endp…

Verify in this order

request → TLS → auth → validation → server

Where it usually breaks

An API response proves only that a particular request reached and was answered by an endpoint; it may not prove durable processing or downstream state.

Client payload/auth → HTTP transport → endpoint validation/policy → request accepted → queued/job execution → target mutation → effective state → consumer workload.

API Failure troubleshooting proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Symptom / scopeTime window, immutable source/run identity, effective inputs and exact targets are explicitFloating source, changed inputs or ambiguous targets destroy reproducibility
First failed boundaryTransport/auth/dependency/render/operation evidence identifies the earliest divergenceInvestigation starts at the final error and skips earlier unproven boundaries
Effective outcomeController result is paired with target read-back and workload/service acceptanceGreen execution state or changed symptom substitutes for effective-state verification
Recovery / closureMinimal change restores the original test and regression/partial-state checks are cleanBroad retry or unrelated edits make the incident non-reproducible and hide residual state

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6049

Confirmation

Confirm action

Continue?