Inline source too large

Moses SkodaEngineer1 min read

The API answers 422 Unprocessable Content with this problem. Its type is https://lingo.dev/docs/api/errors/inline-source-too-large. See Errors and status codes for the shape every error shares.

The inline source of "<documentKey>" is 2 bytes once serialized, over the 2-byte artifact limit. Split the document into smaller ones.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
documentKeystring
bytesinteger
maxBytesinteger

Example#

json
{
  "detail": "The inline source of \"<documentKey>\" is 2 bytes once serialized, over the 2-byte artifact limit. Split the document into smaller ones.",
  "documentKey": "<documentKey>",
  "bytes": 2,
  "maxBytes": 2,
  "type": "https://lingo.dev/docs/api/errors/inline-source-too-large",
  "status": 422,
  "title": "Inline source too large"
}

Returned by#

  • POST /v2/organizations/{orgId}/localization/estimates
  • POST /v2/organizations/{orgId}/localization/jobs