> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 3.7 Troubleshoot Setup

| Symptom | Current code path to check |
| - | - |
| API returns 401 | Check bearer token presence, issuer, audience, expiry, signing key, and required claims. Do not log the token. |
| API returns 403 | Check the route's allowed role and the token's `roles` claim. |
| Customer receives 404 for a claim | Check the claim ID and customer ownership. Customer-only reads hide other customers' claims. |
| Upload grant returns 409 | The claim already has five document records. |
| Upload completion returns 400 or 422 | Compare the declared size and MIME type with Blob properties, then inspect file validation for signature or structure errors. |
| Submission returns 400 | At least one document is required and every upload must be verified. |
| Submission returns 502 | Check the Durable Functions starter and its configured URL and key. |
| Workflow remains in scanning | Check Defender scan-result tags and workflow status. Pending scans are polled every 30 seconds for up to 30 minutes. |
| Review endpoint returns 409 | The assessment may not be ready, the claim may not be awaiting approval, or a reviewer may have sent a conflicting decision. |
| Stripe webhook returns 400 | Check the signing secret and the raw request body forwarded to signature verification. |
| Deployment health check fails | Inspect the application workflow, Container Apps revision, Functions deployment, and runtime settings. |

Monthly claim and page limits are configuration values; the current API does not enforce an HTTP 429 quota response. Redact tokens, short-lived upload URLs, email addresses, document text, keys, and personal identifiers before sharing diagnostics.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.