Bot is remote but callback URL is localhost

不羁岁月 提交于 2019-12-24 00:54:28

问题


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.

How can I fix this problem?

Note that I finally get an internal server error.

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


回答1:


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!

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.

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




回答2:


Assure the MSID and PW are correct in the web.config when you publish



来源:https://stackoverflow.com/questions/46423040/bot-is-remote-but-callback-url-is-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!