我正在尝试使用微软的虚拟助手模板(https://github.com/microsoft/botframework-solutions/blob/master/docs/readme.md),虽然我最终在Azure中通过网络聊天成功地安装了它并工作,但我无法在本地的Bot Emulator中让它工作。我已经安装了ngrok,并且Bot Emulator设置为在启动时启动它,但它抛出了一个错误。
在Bot Emulator设置中,我填充了ngrok可执行文件的路径,选中了Bypass ngrok for local addresses复选框(在此解决方案的安装文档中的示例中,选中了Emulator启动复选框时运行ngrok,将localhost override设置为Localhost (同样来自解决方案示例),将Locale设置为en-US。我尝试过选中和取消选中Bypass ngrok for local addresses复选框,但结果是一样的。
以下是在Bot Emulator中尝试连接的输出。
[12:02:12]Emulator listening on http://localhost:50757
[12:02:33]Error: The bot is remote, but the service URL is localhost.
Without tunneling software you will not receive replies.
[12:02:33]Connecting to bots hosted remotely [12:02:33]Configure ngrok
[12:02:33]Failed to spawn
ngrok{"error_code":104,"status_code":503,"msg":"ngrok is not yet ready
to start tunnels","details":{"err":"a successful ngrok tunnel session
has not yet been established"}}我怀疑缺少一些ngrok配置,但文档仅显示了与使用ngrok进行隧道传输相关的Bot Emulator设置。
发布于 2019-08-19 18:39:36
我将所有东西重新部署到一个新的VM上,虽然我最初仍然得到ngrok失败以产生错误,但这只是一个时间问题,因为它稍后会进行连接,并且虚拟助手在bot仿真器中本地加载和运行。感谢大家的建议。
https://stackoverflow.com/questions/57433764
复制相似问题