本地化产物过大
了解 LocalizationArtifactTooLarge 错误(422 无法处理的内容)的含义、所含字段,以及哪些端点会返回此错误。
API 返回 422 Unprocessable Content 及此问题详情。其 type 为 https://lingo.dev/docs/api/errors/localization-artifact-too-large。所有错误共有的结构请参阅错误和状态码。
产物 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 的大小为 2500001 字节,超过了 2500000 字节的产物大小上限。请将该文件拆分为多个较小的文件。
字段 #
除标准成员 type、status、title 和 detail 外,响应体还包含以下字段。detail 文本根据这些字段生成,客户端也可以改为显示自己的文本。
| 字段 | 类型 |
|---|---|
address | string |
bytes | integer |
maxBytes | integer |
示例 #
json
{
"detail": "Artifact 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 is 2500001 bytes, over the 2500000-byte artifact limit. Split the file into smaller files.",
"address": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"bytes": 2500001,
"maxBytes": 2500000,
"type": "https://lingo.dev/docs/api/errors/localization-artifact-too-large",
"status": 422,
"title": "Localization artifact too large"
}返回此错误的端点 #
POST /v2/localization/jobs/{id}/startPOST /v2/organizations/{orgId}/localization/estimatesPOST /v2/organizations/{orgId}/localization/jobs