ローカライズアーティファクトが大きすぎます

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 のテキストはこれらのフィールドをもとに生成されるため、クライアント側で独自のテキストに置き換えて表示できます。

フィールド型
addressstring
bytesinteger
maxBytesinteger

例 #

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}/start
  • POST /v2/organizations/{orgId}/localization/estimates
  • POST /v2/organizations/{orgId}/localization/jobs