【发布时间】:2019-06-13 03:19:47
【问题描述】:
使用 Botium 时出现以下错误:
TranscriptError:错误:GetNewGetDeleteGet/第 27 行:预期的机器人 响应(在第 20 行:#me - getID)“99 | 这是一个测试”来匹配 “$id | 这是一个测试”之一 在 async.waterfall (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:160:25)
Convo 文件:
#me: getID
#bot: $id | This is a test
要启动 Botium,我会这样做:sudo botium-cli run mochawesome
我已经启动了这个命令:export BOTIUM_ENABLE_MEMORY=true
有什么想法吗? Botium 应该接受 bot 的回答并将 99 保存到变量 $id 中,不是吗?
编辑:将 SCRIPTING_ENABLE_MEMORY=true 添加到配置文件后
convo.txt:
#me
get
#bot default
*Hier sind deine Erinnerungen:*
Keine Notizen, oder alles erledigt.
错误:
TranscriptError: Error: GetNewGetDeleteGet/Line 11: error waiting for bot SyntaxError: Invalid regular expression: /*Hier sind deine Erinnerungen:* Keine Notizen, oder alles erledigt./: Nothing to repeat at String.match (native) at utterances.forEach.expected (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:359:38) at Array.forEach (<anonymous>) at Convo._fillScriptingMemory (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:353:18) at scriptingEvents.onBotStart.then.then (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:256:22) at <anonymous>
Dialogflow shows the answer like this
我的代码是这样发送的:
{'fulfillmentText': '*Hier sind deine Erinnerungen:*\n\nKeine Notizen, oder alles erledigt.'}
编辑 2:
编辑 3: ErrorFull error log
编辑 4: Verbose Log
【问题讨论】:
-
能否发送整个日志,而不仅仅是错误信息?
-
确定,已添加整个日志
-
哦,这也包含在第一个屏幕截图中。嗯,您到底需要什么,我该如何获得?