首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何决定bot (使用MS bot框架创建)的serviceUrl

如何决定bot (使用MS bot框架创建)的serviceUrl
EN

Stack Overflow用户
提问于 2018-01-19 06:25:08
回答 1查看 742关注 0票数 2

我最近移动了我的MS机器人代码(使用MS机器人框架创建到我的新笔记本电脑中)。然而,在模拟器中,两台笔记本电脑的行为是不同的。

机器人作为应用程序服务托管在azure云中。

在我的旧笔记本电脑上,当我发送一条消息时,serviceUrl被设置为一个ngrok URL (我不知道是怎么回事,这正是我试图弄清楚的)。

在我的新笔记本电脑上,我无法在新笔记本电脑上测试机器人,模拟器一直在抱怨。

代码语言:javascript
复制
[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是如何决定的?我不确定为什么它在一台笔记本电脑上工作,而在另一台笔记本电脑上却不行。

谢谢

EN

回答 1

Stack Overflow用户

发布于 2018-02-03 08:31:57

首先确保您运行的是ngork 2.1.18或更高版本,然后打开仿真器的App Settings对话框,输入ngrok的路径,选择是否对本地地址绕过ngrok,然后单击保存。

我建议查看下面的link,它有更多关于设置的详细信息。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48331301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档