> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-api/stackai-api-developer-guide/troubleshooting-and-production-checklist.md).

# Troubleshooting and production checklist

| Symptom                 | Check first                                                                           | Next action                                                                               |
| ----------------------- | ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| 401                     | Correct Bearer syntax, credential type, expiry/revocation, organization               | Replace/refresh through the supported credential flow; do not retry unchanged credentials |
| 403                     | Key scopes, owner's permissions, resource/folder access, publication or logging rules | Inspect the endpoint and error metadata; request only the missing permission              |
| 404                     | Correct deployment, resource ID, organization, saved version, resource access         | Verify the ID with an authorized read; absence may intentionally conceal access           |
| 400/422                 | JSON shape, extra fields, required keys, enum values, UUIDs, multipart names          | Compare with the exact endpoint schema; preserve safe field-level errors                  |
| 402 on run start/resume | Organization usage allowance                                                          | Resolve the usage limit before trying again                                               |
| 409                     | Active job, already-resumed run, cancellation state, name/version collision           | Read current state; do not blindly repeat the write                                       |
| 406 on legacy resume    | SSE requested for a trigger-backed continuation                                       | Use the supported non-SSE/polling path                                                    |
| 429                     | Deployment throttling                                                                 | Back off, honor Retry-After when available, lower concurrency                             |
| 500 after a write       | Side effect may already have occurred                                                 | Reconcile existing runs/resources before retrying                                         |
| 503 on run reservation  | Dispatch did not occur according to this route's contract                             | Retry within a bounded policy                                                             |
| 503 on eval job GET     | Live job state temporarily unavailable                                                | Retry the same status URL, not job creation                                               |
| Empty KB search         | Indexing status, source access, query strategy, actual content                        | Wait for indexed resources and test with a known document phrase                          |
| Empty connection list   | Provider filter and connection sharing                                                | Check access in StackAI and reconnect degraded entries                                    |
| Missing pause payload   | Read and run permissions both present                                                 | Use a credential permitted to resume; keep the token out of logs                          |

Log method, route template, status, safe error code, latency, and returned resource IDs. Redact authorization, resume tokens, webhook secrets, signed URLs, and sensitive input/output. The public error envelope can contain `errors`, `detail`, `response_code`, and `meta`; legacy responses can differ. Do not assume every exception conforms to one JSON shape.

Before shipping: test against a nonproduction project; pin the intended saved workflow version; validate the input contract; configure timeouts and safe retry limits; persist asynchronous IDs; verify all terminal states and pauses; exercise pagination beyond one page; check key revocation; and test your webhook signature/deduplication path if used.

No universal numeric request-rate, execution-time, or file-size limit is asserted by this documentation. Use schema-enforced bounds, deployment policy, and observed response headers. Do not infer an SLA or supported SDK from illustrative HTTP examples.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-api/stackai-api-developer-guide/troubleshooting-and-production-checklist.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
