测量不可用

了解 MeasurementsNotOffered 错误(422 无法处理的内容)的含义、包含的字段,以及哪些端点会返回此错误。

出现此问题时,API 会返回 422 Unprocessable Content,其 type 为 https://lingo.dev/docs/api/errors/measurements-not-offered。有关所有错误的通用结构,请参阅错误和状态码。

无法在本次检查中运行 <id>:这些测量项并非此组织的自定义测量项,或其已启用的条件均不涵盖本次检查的任何目标语言区域。请选择适用于这些语言区域的测量项,或省略 measurementIds 以运行所有可用测量项。

字段 #

除标准的 type、status、title 和 detail 成员外,响应体还包含以下字段。detail 文本由这些字段生成,因此客户端也可以显示自行编写的文本。

字段类型
idsstring[]

示例 #

JSON
{
  "detail": "Cannot run <id> in this check: they are not custom measurements of this organization, or none of their enabled conditions covers a target locale of the check. Choose measurements offered for these locales, or leave measurementIds out to run every offered one.",
  "ids": [
    "<id>"
  ],
  "type": "https://lingo.dev/docs/api/errors/measurements-not-offered",
  "status": 422,
  "title": "Measurements not offered"
}