【问题标题】:Azure Translate API {"error":{"code":400000,"message":"One of the request inputs is not valid."}}Azure Translate API {"error":{"code":400000,"message":"其中一个请求输入无效。"}}
【发布时间】:2021-12-30 23:46:14
【问题描述】:

与使用 Azure 的翻译 API 进行翻译相关的错误 {"error":{"code":400000,"message":"其中一个请求输入无效。"}} 我不知道为什么会出现错误消息

【问题讨论】:

    标签: azure-api-management microsoft-translator


    【解决方案1】:

    根据translator documentation

    请求的主体是一个 JSON 数组。每个数组元素都是一个 JSON 对象,带有一个名为 Text 的字符串属性,表示要翻译的字符串。

    您在查询字符串中传递了text,这是错误的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-15
      • 1970-01-01
      • 2022-07-23
      • 1970-01-01
      • 2018-04-10
      • 2019-06-24
      • 2020-04-27
      相关资源
      最近更新 更多