Use it when the symptom is “API Failure”: work through the layers in order and stop at the first one that fails.
API Failure
API Failure isolates automation problems across endpoint/version discovery, DNS/TLS, authentication, authorization, request construction, server processing, asynchronous task state and target read-back.
1. API failure: DNS/TLS, auth, payload, rate limits, server errors, API changes.
2. Read status and body.
3. Check docs/changelog.
4. Retry transient errors.
5. Contact provider with request ID.
request → TLS → auth → validation → server
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
curl -sS -D - -o /dev/null <url>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
caller → endpoint/version → DNS/TLS → authentication → authorization → request schema → server validation → accepted operation/task ID → task completion → resource read-back → workload acceptance
Healthy evidence: request/response correlation is preserved, the first transport/auth/contract/server/task boundary is known, operation completion is confirmed, and resource/workload state matches intent.
Step 2 Telling causes apart Verify boundary
Known-good for curl -sS -D - -o /dev/null <url> is the expected HTTP status and headers from the intended service, followed by the workflow's semantic assertion or resource read-back succeeding. Broken evidence is a stable wrong status class, missing required header, transport failure or accepted request whose task/resource ends failed. The curl response shows that request only, but it does not show durable convergence of an asynchronous or state-changing API operation.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: only status code is captured, request payload changes between retries, async operation IDs are ignored, or 2xx is treated as final success.
Step 4 Observation-driven branch and next-check logic Narrow the fault
Issue the minimal safe request to the exact endpoint and inspect response status/headers. If no HTTP response is returned, move down to DNS/TCP/TLS; if 401/403, verify credential scope and caller identity; if 404/405, validate URI/version/method; if 429/5xx, inspect rate-limit/retry guidance or server health. When the API returns 2xx/202 but the workflow still fails, query the task/resource state and compare the requested object with direct read-back instead of retrying blindly.
Step 5 Common mistakes Narrow the fault
- Ignoring the response body of failed calls.
- Wrong base URL or API version.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
curl -v <api>— full exchange- API status page/health — provider side
- Request ID in response — support
ReferenceWhat it is1 section · depth on demand
Core model
Pin API base URL/version and request ID; capture method, path, safe headers, payload hash/schema and response; distinguish transport/TLS, auth, 4xx contract, 5xx server and async-task failures; follow operation IDs to completion; verify resulting resource state independently.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
API Failure separates DNS/TCP/TLS reachability, HTTP request construction, authentication/authorization, endpoint/version routing and application-level processing. curl -sS -D - -o /dev/null <url> captures response headers and HTTP status without assuming the body is safe or sufficient. The API gateway/service owns the HTTP response state and processes the request, while asynchronous task/resource state is a downstream dependency kept separate from transport. A 2xx response shows one HTTP transaction result; asynchronous APIs and semantic errors can still leave the managed resource unchanged.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
An API response shows only that a particular request reached and was answered by an endpoint; it may not show durable processing or downstream state.
In depth
An API failure is an unsuccessful API call: an HTTP error status, malformed response, timeout or unexpected data. Diagnosis starts from the full request and response.
| Category | Examples |
|---|---|
| Client errors (4xx) | Bad payload, auth, permissions, not found |
| Server errors (5xx) | Bugs, overload, upstream failures |
| Transport | DNS, TLS, proxy, timeouts |
| Data | Schema changed, missing fields |
Log method, URL (without secrets), status, response body excerpt and request ID; vendors can trace failures from the request ID.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Troubleshooting > API Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
API Failure troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for API Failure.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |