Ibm cloud IBM Watson Assistant:如何解决web“操作错误”;内部错误:无法检索内容类型;
我正在尝试将IBM云功能与Watson助手对话框连接为web\u操作。因此,我在watson对话框json编辑器中指定了如下web_操作Ibm cloud IBM Watson Assistant:如何解决web“操作错误”;内部错误:无法检索内容类型;,ibm-cloud,ibm-watson,watson-assistant,ibm-cloud-functions,Ibm Cloud,Ibm Watson,Watson Assistant,Ibm Cloud Functions,我正在尝试将IBM云功能与Watson助手对话框连接为web\u操作。因此,我在watson对话框json编辑器中指定了如下web_操作 "actions": [ { "name": "rajesh@heltha.co_dev/default/callKinvey", "type": "web_action", "parameters": { }, "credentials": "$private.mycredential",
"actions": [
{
"name": "rajesh@heltha.co_dev/default/callKinvey",
"type": "web_action",
"parameters": {
},
"credentials": "$private.mycredential",
"result_variable": "context.my_input_returned"
}
]
现在,问题是在测试助手时,我遇到了以下错误
内部错误:无法检索内容类型。(日志中还有一个错误)
以下是我在IBM cloud上创建并为Web操作启用的函数:
/**
*
* main() will be run when you invoke this action
*
* @param Cloud Functions actions accept a single parameter, which must be a JSON object.
*
* @return The output of this action, which must be a JSON object.
*
*/
function main(params) {
return { message: 'Hello World' };
}
我的函数的旋度是:
curl -u API-KEY -X POST https://us-south.functions.cloud.ibm.com/api/v1/namespaces/rajesh@heltha.co_dev/actions/callKinvey?blocking=true
解决此类错误的最简单方法是将
.json
附加到端点。请参阅这些非常类似问题的详细答案,以及