Bot是远程的,但回调URL是localhost [英] Bot is remote but callback URL is localhost

查看:101
本文介绍了Bot是远程的,但回调URL是localhost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用botframework模拟器调试Azure机器人.
每当我尝试连接时,模拟器都会告诉我该漫游器是远程的,但回调URL是localhost.
我该如何更改?
它还抱怨我的ngrok设置,但是我相当确定它们没问题,因为我下载了ngrok并在设置中粘贴了指向.exe的正确路径.

I want to debug my azure bot with botframework emulator.
Whenever I try to connect, the emulator tells me the bot is remote but the callback URL is localhost.
How can I change this?
It also complains about my ngrok settings, but I am fairly sure that everything's allright about them, because I downloaded ngrok and pasted the correct path to the .exe in the settings.

如何解决此问题?

请注意,我终于收到内部服务器错误.

Note that I finally get an internal server error.

我在bot Framework页面中的设置(由JustAShadow建议)是

My Settings in the bot Framework page (as suggested by JustAShadow) are:

推荐答案

您在仿真器中的URL框中输入的URL应该用于本地调试.即,您在本地运行机器人,获取该本地正在运行的机器人的URL,并将该localhost URL添加到您的机器人模拟器中.您是在bot框架模拟器中的bot框架中模拟实际的bot!

the URL you entered in the box for URL on the emulator is supposed to be for local debugging. I.E you run your bot locally, get the URL for that local running bot, and add that localhost url to your bot emulator. you are emulating an actual bot in a bot framework inside a bot framework emulator!

构建模拟器是为了模拟Bot框架ENV,因此当您在本地运行bot时,它将了解您应该在其下运行的环境类型.

The emulator is built in order to emulate the Bot framework ENV, so that when you run your bot locally, it understands the type of environment you should be running under.

IE,如果您获得DocumentDb模拟器,则不要将其连接到真实的数据库,它只是假装是天蓝色,而不是调试Azure

I.E if you get DocumentDb emulator, you dont connect it to a real database, its just pretending to be azure, not Debugging Azure

这篇关于Bot是远程的,但回调URL是localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆