Omono API
Menu Errors

Errors

document-too-large

View as Markdown

HTTP 409 Document too large

What it means#

The record has more than 10,000 related records to return with it, or comes to more than 32 MB of JSON with them, which is more than one response can carry. The related records count as the API returns them: a document's line items and their BOM items, the dispatches or deliveries you include with their line items, or a company's contacts and addresses. A list page that starts with such a record fails in the same way when you include its related records. A write that would return a record with more than 10,000 related records is refused in the same way before it changes anything: a PATCH also counts the new line items it adds and the BOM items that new assembly line items bring (updating or deleting a line item adds nothing), and moving a dispatch or marking one as paid counts the order's dispatches and their line items.

What to do#

Don't retry, because the same request fails again. Read the record in Omono instead, or make the change there. In a list, leave out include to page past it.

The error response#

Every error response has an application/problem+json body. For this error, its code is document-too-large and its type is the address of this page. If you contact Omono about the error through the in-app chat, quote the response's requestId.