Use this section to troubleshoot issues encountered when calling the new Parse API.Documentation Index
Fetch the complete documentation index at: https://docs.landing.ai/llms.txt
Use this file to discover all available pages before exploring further.
Common Status Codes
These status codes are handled at the account and gateway level and can apply to any request.| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 401 | Unauthorized | Missing or invalid API key. | Check that your Authorization header is present and contains a valid API key. |
| 402 | Payment Required | Your account does not have enough credits to complete processing. | If you have multiple accounts, make sure you’re using the correct API key. Add more credits to your account. |
| 429 | Too Many Requests | Rate limit exceeded. | Wait before retrying. Reduce request frequency and implement exponential backoff. See Rate Limits. |
Parse Status Codes
| Status Code | Name | Description | What to Do |
|---|---|---|---|
| 200 | Success | Document parsed successfully and returned immediately. | Continue with normal operations. |
| 206 | Partial Content | Document parsed, but at least one page (and not all pages) failed during processing. | Review the failed_pages field in the metadata. See Status 206. |
| 400 | Bad Request | Invalid model version or invalid document_url. | Review the error message for the specific issue. See Status 400. |
| 413 | Payload Too Large | The document exceeds the 50 MiB size limit. | Reduce the document size. See Status 413. |
| 422 | Unprocessable Entity | Input validation failed. | Review your request parameters. See Status 422. |
| 500 | Internal Server Error | All pages failed to process. | Retry. If the issue persists, contact support@landing.ai. See Status 500. |
Status 206: Partial Content
This response occurs when the document was parsed successfully but at least one page (and not all pages) failed during processing. The response includes:- A 206 status code.
- Parsed content for the successful pages. Each successful page has a
statusof"ok"instructure.children. - A
failed_pagesarray inmetadatalisting which pages failed (0-indexed). - A
statusof"failed", areason, and a zero-lengthspanon each failed page instructure.children.
- Review
metadata.failed_pagesto identify which pages failed. - Review the
reasonon each failed page instructure.childrenfor details. - Check whether the failed pages are corrupted or have unusual formatting.
- If the issue persists with specific pages, contact support@landing.ai.
Status 400: Bad Request
This status code indicates an invalid model version or an invaliddocument_url. Review the specific error message to identify the issue.
Error: Unknown Model Version
This error occurs when themodel form field specifies a version that is not registered.
Error message:
- Omit the
modelfield to use the latest version by default. - Supply a valid version: the
dpt-3-pro-latestalias, or a dated snapshot such asdpt-3-pro-20260515. See Model Version.
Error: Invalid document_url Scheme
This error occurs when thedocument_url uses a scheme other than http or https (for example, ftp:// or file://).
Error message:
document_url that begins with http:// or https://.
Error: document_url Missing Hostname
This error occurs when thedocument_url does not contain a hostname.
Error message:
https://example.com/file.pdf).
Error: document_url Did Not Resolve
This error occurs when thedocument_url hostname cannot be resolved through DNS.
Error message:
- Verify the hostname is spelled correctly.
- Confirm the host is publicly reachable.
Error: document_url Resolves to a Non-Public IP
This error occurs when thedocument_url hostname resolves to a private, loopback, link-local, reserved, or multicast IP address. Only publicly reachable URLs are allowed.
Error message:
document parameter.
Error: document_url Returned a Redirect
This error occurs when thedocument_url responds with a redirect (301, 302, 303, 307, or 308). The server does not follow redirects; the URL must serve the file bytes directly.
Error message:
Status 413: Payload Too Large
This status code indicates the document exceeds the 50 MiB size limit. The limit applies whether you upload the file directly (document) or supply a URL (document_url).
Error message:
- Reduce the document size to 50 MiB or less.
- Split larger documents into smaller files. See Rate Limits for current size limits.
Status 422: Unprocessable Entity
This status code indicates input validation failures. Review the error message and adjust your request parameters.Error: Must Provide a Document
This error occurs when your request includes neither thedocument nor the document_url parameter.
Error message:
- Use the
documentparameter to upload a file. - Use the
document_urlparameter to provide a URL to a file.
Error: Cannot Provide Both document and document_url
This error occurs when both a file and a URL are provided in the same request. Error message:Error: Empty File
This error occurs when the uploaded file contains no data. Error message:Error: Unsupported or Unrecognized File Format
This error occurs when the file is not a supported PDF or image. The format is detected from the file’s content, not its extension or Content-Type header. Error message:- Convert your document to a supported format before uploading. See Supported File Types.
- Verify the file is not corrupted by opening it in the appropriate application.
Error: Too Many Pages
This error occurs when a PDF exceeds the 100-page per-request limit. See Rate Limits. Error message:Error: Failed to Fetch document_url
This error occurs when the server cannot retrieve the file from thedocument_url. The URL returned an HTTP error status, or the request failed (for example, a connection or timeout error).
Error message:
- Verify the URL is accessible and returns the file directly.
- Check that the URL does not require authentication.
- Confirm the host is reachable and responds within the timeout.
Error: Invalid options Value
This error occurs when theoptions form field is not valid JSON, or when its contents fail validation (for example, a negative page index).
Error message:
- Ensure
optionsis a valid JSON object. - Use 0-indexed, non-negative values in
pages. - See Request Options for the full schema.
Status 500: Internal Server Error
This status code indicates that every page in the document failed to process. The response body is still a full parse response: each page instructure.children carries a status of "failed" and a reason, and metadata.failed_pages lists every page.
What to do:
- Retry the request.
- Review the
reasonon the failed pages for details. - Check whether the document has unusual formatting or corrupted content.
- If the error persists, contact support@landing.ai.