必须设置如何解决MalformedResponse'final_response'。动作模拟器中的错误 [英] How to solve MalformedResponse 'final_response' must be set. error in action simulator
本文介绍了必须设置如何解决MalformedResponse'final_response'。动作模拟器中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试测试我的测试应用程序时,它会停止并显示
Hi, When I try to test my Test app, it gets stopped and display
My test app isn't responding right now. Try again soon
。
当我检查验证错误标签时,我注意到我收到了此错误
.
When I check validation error tab I notice I got this error
MalformedResponse
'final_response' must be set.
这是调试信息:
<code>
{
"audioResponse": "//NExAAQMQ...",
"conversationToken": "GidzaW11bG...",
"debugInfo": {
"agentToAssistantDebug": {
"agentToAssistantJson": "{}"
},
"assistantToAgentDebug": {
"assistantToAgentJson": "{\"user\":{\"userId\":\"ABwppHG7Kyq6lQuC4UQhVkNFxGJ3HlCPVLe03G5Jo9UUsXcg41z8LL0ppX3pIv36nDLcvJD8YNxQexCrqoywTg\",\"locale\":\"en-US\",\"lastSeen\":\"2018-02-09T08:05:38Z\",\"userStorage\":\"{\\\"data\\\":{}}\"},\"conversation\":{\"conversationId\":\"1518164534381\",\"type\":\"NEW\"},\"inputs\":[{\"intent\":\"actions.intent.MAIN\",\"rawInputs\":[{\"inputType\":\"KEYBOARD\",\"query\":\"Talk to my test app\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"}]},\"isInSandbox\":true,\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]}]}",
"curlCommand": "curl -v 'https://api.api.ai/api/integrations/google?token=e4092e2db85b4744be7d736861988a51' -H 'Content-Type: application/json;charset=UTF-8' -H 'Google-Actions-API-Version: 2' -H 'Authorization: eyJhbGciOiJSUzI1NiIsImtpZCI6ImJhNGRlZDdmNWE5MjQyOWYyMzM1NjFhMzZmZjYxM2VkMzg3NjJjM2QifQ.eyJhdWQiOiJyZXN0YXVyYW50LTRhYzMzIiwiYXpwIjoiMzk3NjQzMDYwNTkyLWlydW9ubHFzZ2cyZm81cnM1OXIwcGpkYTBxMjVsZjZsLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiZXhwIjoxNTE4MTY0NjU0LCJpc3MiOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20iLCJqdGkiOiI0NzVhMDU5OTllMzc4ODA0MmE5YTlhYjFkZmQ0YWU0MzA2Y2MzNTA3IiwiaWF0IjoxNTE4MTY0NTM0LCJuYmYiOjE1MTgxNjQyMzR9.GZ3NrlfYPAx5egtOYDktY9W-6P776_eLsth7tvyK-q7vytHdbMOcL4Pkq27g4pcWL8VRJkPv_3VL-QA2uAPaVm1m0F2H3qfYHqQtZmBgxgICSiwKCpyUnV1KkQWlD5O6MRW1VVZFXMqk2n2_w1U_8MCXH3z1nIB_G9MHLUD3mTomvM1W_SoyIx6xhvDJKVHN42pu28Ahj_BJEilazK6q91OhtY3hbcGjB5xAYnVP6Soh_N4qSvlrPV3J5-L8pKu0sArlspukGLKb_ijNKZiEgxsire2WCs85-5GbB-mKPXGnOuPY7mE168b2Xw37us-5V0sZ1y7Qtod7nH85A1kHaA' -A 'Mozilla/5.0 (compatible; Google-Cloud-Functions/2.1; +http://www.google.com/bot.html)' -X POST -d '{\"user\":{\"userId\":\"ABwppHG7Kyq6lQuC4UQhVkNFxGJ3HlCPVLe03G5Jo9UUsXcg41z8LL0ppX3pIv36nDLcvJD8YNxQexCrqoywTg\",\"locale\":\"en-US\",\"lastSeen\":\"2018-02-09T08:05:38Z\",\"userStorage\":\"{\\\"data\\\":{}}\"},\"conversation\":{\"conversationId\":\"1518164534381\",\"type\":\"NEW\"},\"inputs\":[{\"intent\":\"actions.intent.MAIN\",\"rawInputs\":[{\"inputType\":\"KEYBOARD\",\"query\":\"Talk to my test app\"}]}],\"surface\":{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"},{\"name\":\"actions.capability.WEB_BROWSER\"},{\"name\":\"actions.capability.MEDIA_RESPONSE_AUDIO\"}]},\"isInSandbox\":true,\"availableSurfaces\":[{\"capabilities\":[{\"name\":\"actions.capability.SCREEN_OUTPUT\"},{\"name\":\"actions.capability.AUDIO_OUTPUT\"}]}]}'"
},
"sharedDebugInfo": [
{
"name": "ResponseValidation",
"subDebugEntry": [
{
"debugInfo": "'final_response' must be set.",
"name": "MalformedResponse"
}
]
}
]
},
"response": "My test app isn't responding right now. Try again soon.",
"visualResponse": {
"visualElements": []
}
}
</code>
推荐答案
像我一样,可能会有一个愚蠢的错误。
There could be a silly mistake like I did.
在您的index.js文件中,查看以下类似行:
In Your index.js file, Check out this similar line:
app.intent('favourite color', (conv, {color}) => {
const luckyNumber = color.length;
在这种情况下,请确保您的意图名称与创建新意图时创建的意图完全相同。
In this, be sure that your intent name is exactly same as your intent that you created while creating a new intent.
注意:意图名称区分大小写,因此请确保在此.js文件行中键入完全相同的名称。
这篇关于必须设置如何解决MalformedResponse'final_response'。动作模拟器中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文