来自更新的爬虫 userFeedback.json 的 Botium 脚本未生成
Botium Scripts from updated Crawler userFeedback.json not generating
当我尝试重新运行 更新的 userFeedback.json 时,脚本文件夹为空,我没有得到新脚本(这将包括对 userFeedback.json 所做的任何更改文件)
您对故障排除或 settings/config 更改有什么建议吗?
谢谢!
因此,如果我理解正确,当您 re-run 爬虫时,您会获得与之前更新 userFeedback.json 相同的脚本,对吗?
我需要一些信息:
- 您用于 运行 爬虫的命令(或配置)是什么样的?
- 您在 userFeedback.json 中修改了什么?
提示:如果使用DEBUG=botium-crawler*环境变量,可以获得更详细的日志。例如:DEBUG=botium-crawler* botium-cli crawler-run ...
已更新
(我从评论中得到了一些新信息)
我也用 docker 试过了(用 '-it' 运行 很重要,因为你会有终端交互):
docker run --rm -v $(pwd):/app/workdir -it botium/botium-cli crawler-run
使用上面的命令我得到了这个结果:
然后我从 crawler-result 中删除了脚本文件夹,并在“你好”路径上使用“测试”答案编辑 userFeedback.json:
[
{
"path": "hello",
"script": "hello\n\n#me\nhello\n\n#bot\nYou said: hello\n",
"answers": ["test"]
},
{
"path": "help",
"script": "help\n\n#me\nhelp\n\n#bot\nRecognized commands: help, fail, add to cart, show cart, clear cart, weak intent, duplicate intent, buttons, show me buttons, show me some buttons, give me buttons, picture, show me a picture, give me a picture, card, show me a card, give me a card, attachment, audio attachment, video, video attachment, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button\n",
"answers": []
}
]
我re-run把上面写的docker命令再写一遍,结果是:
希望对您有所帮助。
当我尝试重新运行 更新的 userFeedback.json 时,脚本文件夹为空,我没有得到新脚本(这将包括对 userFeedback.json 所做的任何更改文件)
您对故障排除或 settings/config 更改有什么建议吗?
谢谢!
因此,如果我理解正确,当您 re-run 爬虫时,您会获得与之前更新 userFeedback.json 相同的脚本,对吗?
我需要一些信息:
- 您用于 运行 爬虫的命令(或配置)是什么样的?
- 您在 userFeedback.json 中修改了什么?
提示:如果使用DEBUG=botium-crawler*环境变量,可以获得更详细的日志。例如:DEBUG=botium-crawler* botium-cli crawler-run ...
已更新
(我从评论中得到了一些新信息)
我也用 docker 试过了(用 '-it' 运行 很重要,因为你会有终端交互):
docker run --rm -v $(pwd):/app/workdir -it botium/botium-cli crawler-run
使用上面的命令我得到了这个结果:
然后我从 crawler-result 中删除了脚本文件夹,并在“你好”路径上使用“测试”答案编辑 userFeedback.json:
[
{
"path": "hello",
"script": "hello\n\n#me\nhello\n\n#bot\nYou said: hello\n",
"answers": ["test"]
},
{
"path": "help",
"script": "help\n\n#me\nhelp\n\n#bot\nRecognized commands: help, fail, add to cart, show cart, clear cart, weak intent, duplicate intent, buttons, show me buttons, show me some buttons, give me buttons, picture, show me a picture, give me a picture, card, show me a card, give me a card, attachment, audio attachment, video, video attachment, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button\n",
"answers": []
}
]
我re-run把上面写的docker命令再写一遍,结果是:
希望对您有所帮助。