“Failed to parse Dialogflow response into AppResponse because of empty speech response” with flask-assistant
我正在使用flask assistant、ngrok和dialogflow测试Raspberrypi环境。当我在遵循https://flask-assistant.readthedocs.io/en/latest/quick_start.html中的快速入门教程之后运行模拟器时,我得到了一个错误。
"Failed to parse Dialogflow response into AppResponse because of empty
speech response"
号
你知道是什么导致了这个错误吗?这是错误日志。
[2018-08-19 17:56:50,006] ERROR in app: Exception on / [POST]
Traceback (most recent call last):
File"/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File"/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File"/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File"/home/pi/.local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
raise value
File"/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File"/home/pi/.local/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functionsrule.endpoint
File"/usr/local/lib/python3.5/dist-packages/flask_assistant/core.py", line 285, in _flask_assitant_view_func
self.intent = self.request['result']['metadata']['intentName']
KeyError: 'result'
127.0.0.1 - - [19/Aug/2018 17:56:50]"POST / HTTP/1.1" 500 -
号
请检查瓶装助理是否支持V2版的对话框。就我的知识而言,这只是暂时的。试着用V1创建您的对话代理人,然后测试快捷的启动辅导