【发布时间】:2020-07-15 05:02:40
【问题描述】:
我开发了交互式画布应用程序,它在具有显示的设备上运行良好。
当我今天检查它时突然显示“应用程序没有响应,请稍后再试。”。当我签入测试模拟器并进行调试时,我收到了在调试中打印的以下错误。
"sharedDebugInfoList": [
{
"name": "ResponseValidation",
"debugInfo": "",
"subDebugEntryList": [
{
"name": "MalformedResponse",
"debugInfo": "expected_inputs[0].input_prompt.rich_initial_prompt.items[1].html_response: HtmlResponse is not supported on this device..",
"subDebugEntryList": []
}
]
}
],
它可以正常工作,用户正在他们的移动设备上使用它,但这个突然的错误让我无法理解它。我的代码甚至没有进行 1 行更改。我什至检查了云日志,但什么也没有。这是用户进入我的操作时我正在做的事情。
app.intent('welcome', (conv) => {
console.log('capabilities = ',conv.surface.capabilities)
if (!conv.surface.capabilities.has('actions.capability.SCREEN_OUTPUT')) {
conv.close('Sorry, this device does not support Interactive Canvas!');
return;
}
conv.ask(`Welcome! Let's start the game`);
conv.ask(new HtmlResponse({
url: '<url of my website having interactive canvas support>',
}));
});
Here 是我面临错误的操作。
【问题讨论】:
标签: dialogflow-es actions-on-google dialogflow-es-fulfillment