我最近移动了我的MS机器人代码(使用MS机器人框架创建到我的新笔记本电脑中)。然而,在模拟器中,两台笔记本电脑的行为是不同的。
机器人作为应用程序服务托管在azure云中。
在我的旧笔记本电脑上,当我发送一条消息时,serviceUrl被设置为一个ngrok URL (我不知道是怎么回事,这正是我试图弄清楚的)。
在我的新笔记本电脑上,我无法在新笔记本电脑上测试机器人,模拟器一直在抱怨。
[03:51:09] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:09] Connecting to bots hosted remotely
[03:51:09] Edit ngrok settings
[03:51:09] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:09] Connecting to bots hosted remotely
[03:51:09] Edit ngrok settings
[03:51:11] -> POST 200 [conversationUpdate]
[03:51:11] -> POST 200 [conversationUpdate]
[03:51:15] Error: The bot is remote, but the callback URL is localhost. Without tunneling software you will not receive replies.
[03:51:15] Connecting to bots hosted remotely
[03:51:15] Edit ngrok settings
[03:51:16] -> POST Request to 'https://something.azurewebsites.net/api/messages' failed: [500] Internal Server Error 我已经编辑了ngrok设置,为其提供了ngrok exe的路径。
谁能告诉我服务url是如何决定的?我不确定为什么它在一台笔记本电脑上工作,而在另一台笔记本电脑上却不行。
谢谢
发布于 2018-02-03 08:31:57
首先确保您运行的是ngork 2.1.18或更高版本,然后打开仿真器的App Settings对话框,输入ngrok的路径,选择是否对本地地址绕过ngrok,然后单击保存。

我建议查看下面的link,它有更多关于设置的详细信息。
https://stackoverflow.com/questions/48331301
复制相似问题