在microsoft azure中使用PowerApps运行应用程序时出错
我正在尝试使用Microsoft azure认知服务在powerapps上运行应用程序。这是一个情感分析应用程序,其中基于我们输入的句子,情感分析分数在0到1之间,其中1为正,0为负。但无论我如何尝试和执行,我都无法处理此错误: TextAnalytics.DetectLanguage失败:在microsoft azure中使用PowerApps运行应用程序时出错,azure,powerapps,text-analytics-api,Azure,Powerapps,Text Analytics Api,我正在尝试使用Microsoft azure认知服务在powerapps上运行应用程序。这是一个情感分析应用程序,其中基于我们输入的句子,情感分析分数在0到1之间,其中1为正,0为负。但无论我如何尝试和执行,我都无法处理此错误: TextAnalytics.DetectLanguage失败: { "code": "BadRequest", "message": "Invalid request", "innerError": { "code": "InvalidRequest
{
"code": "BadRequest",
"message": "Invalid request",
"innerError": {
"code": "InvalidRequestQueryString",
"message": "Request contains a query string. Request content should be placed in the request body, not in the url as a query string."
}
}
如果任何人对这个错误有任何想法,并且知道如何处理它。请帮助我执行此代码。从错误中,听起来您的请求格式不正确。该服务正在寻找以下格式的POST请求,听起来您发送的是一个参数化URL 根据《公约》,请求的形式应为:
{
"documents": [
{
"language": "en",
"id": "1",
"text": "Hello world. This is some input text that I love."
},
{
"language": "fr",
"id": "2",
"text": "Bonjour tout le monde"
},
{
"language": "es",
"id": "3",
"text": "La carretera estaba atascada. Había mucho tráfico el día de ayer."
}
]
}
您的请求如何比较?从错误中可以看出,您的请求似乎格式不正确。该服务正在寻找以下格式的POST请求,听起来您发送的是一个参数化URL 根据《公约》,请求的形式应为:
{
"documents": [
{
"language": "en",
"id": "1",
"text": "Hello world. This is some input text that I love."
},
{
"language": "fr",
"id": "2",
"text": "Bonjour tout le monde"
},
{
"language": "es",
"id": "3",
"text": "La carretera estaba atascada. Había mucho tráfico el día de ayer."
}
]
}
你的要求如何比较