【发布时间】:2020-10-28 12:27:04
【问题描述】:
环境: API:谷歌云翻译 V3, 文字大小:12 000 字
translateText() 方法可以翻译单词和短句,但是当我运行整个文本时,我遇到了“文本太长”的错误。
"message": "Text is too long.",
"code": 3,
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": 0,
"data": "type.googleapis.com\/google.rpc.BadRequest"
},
{
"@type": 0,
"data": [
{
"field": "contents",
"description": "The total codepoints in the request must be less than 30720, actual: 90005"
}
]
}
]
}
【问题讨论】:
标签: google-cloud-platform google-cloud-translate