Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 如何确定bot(使用MS bot框架创建)的serviceUrl_Azure_Botframework - Fatal编程技术网

Azure 如何确定bot(使用MS bot框架创建)的serviceUrl

Azure 如何确定bot(使用MS bot框架创建)的serviceUrl,azure,botframework,Azure,Botframework,我最近将我的MS bot代码(使用MS bot框架创建)移动到了我的新笔记本电脑中。然而,在emulator中,两台笔记本电脑的行为有所不同 bot作为应用程序服务托管在azure云中 在我的旧笔记本电脑中,当我发送消息时,serviceUrl被设置为一个ngrok URL(我不知道怎么做,这就是我想弄明白的) 在我的新笔记本电脑中,我无法在新笔记本电脑中测试机器人,emulator不断抱怨 [03:51:09] Error: The bot is remote, but the callbac

我最近将我的MS bot代码(使用MS bot框架创建)移动到了我的新笔记本电脑中。然而,在emulator中,两台笔记本电脑的行为有所不同

bot作为应用程序服务托管在azure云中

在我的旧笔记本电脑中,当我发送消息时,serviceUrl被设置为一个ngrok URL(我不知道怎么做,这就是我想弄明白的)

在我的新笔记本电脑中,我无法在新笔记本电脑中测试机器人,emulator不断抱怨

[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是如何决定的吗?我不知道为什么它可以在一台笔记本电脑上工作,但不能在另一台上工作


感谢

首先确保您运行的是ngork 2.1.18或更高版本,然后打开emulator的“应用程序设置”对话框,输入ngrok的路径,选择是否绕过本地地址的ngrok,然后单击“保存”


我建议检查以下内容,它有关于设置的更多详细信息。

如果您是说endpoint或serviceUrl ngrok永远不会用于serviceUrl,我会感到困惑。
没有隧道软件
在emulator应用程序设置上配置ngrok的路径后,请确保单击“保存”。此外,早期版本可能不兼容,请检查ngrok的版本。