如何在Bot Framework Channel Emulator中将错误解决为"500内部服务器错误"?

问题描述:

我正在研究Bot框架技术,最近Microsoft宣布了新版的bot(V3). 我已经使用旧版本开发了机器人,现在我正尝试将我的机器人升级到新版本. 为此,一切正常,但是在将我的漫游器发布为天蓝色之后,然后使用发布URL,我尝试在漫游器框架通道模拟器(3.0.0.54)中进行测试,它始终显示"500,内部服务器错误". 但是,当我向自己的漫游器中添加Skype频道时,它将可以正常工作.

I am working on Bot framework technology, recently Microsoft announced the new version (V3) of bot. I was already developed bots using old version, now I am trying to upgrade my bots to newer version. For that everything working fine but after published my bot into azure, then by using the publish URL I am trying to test in bot framework channel emulator (3.0.0.54) it gives always "500, internal server error". But when I added skype channel to my bot then it will working fine.

唯一的问题是,当我在bot框架通道模拟器中使用bot应用程序的已发布URL进行测试时,只有我得到的错误为内部服务器错误".

Only the problem is when I am testing in bot framework channel emulator with Published URL of my bot application, then only I got the error as "Internal server error".

我认为最新版本的bot框架通道模拟器可能有问题

I think there may be problem with latest version bot framework channel emulator

  • 请从 https://ngrok.com/download

    解压缩文件并使用命令提示符运行以下命令

    Unzip the file and use command prompt to run the below command

    ngrok http -host-header =重写9000

    ngrok http -host-header=rewrite 9000

    屏幕截图

    • 如屏幕快照所示,复制带有https的转发URL 并将其粘贴到模拟器url
    • 仿真器端口应位于9000,仿真器URL应包含ngrok 转发Https URL
    • As seen in screenshot copy Forwarding URL with https and paste it in Emulator url
    • Emulator port should be in 9000 and emulator Url should contain ngrok forwarding Https URL

    注意:ngrok应该处于运行状态.如果下次尝试时遇到相同的500错误,请从步骤1开始. 有关更多参考,请访问.https//docs.botframework.com/en-us/tools/bot-framework-emulator/#navtitle

    Note :ngrok should be in running state .if your getting same 500 error while trying next time please start from step 1. For more reference .https//docs.botframework.com/en-us/tools/bot-framework-emulator/#navtitle