无法发送JwtToken-Microsoft Azure Bot-LUIS

问题描述:

我想开始为Skype,Slack等编写Bot. 我已经在Microsoft Azure门户中设置了一个Bot,并启用了Visual Studio Team Services(VSTS)和Visual Studio(VS)的连续部署. 我只是用来将代码从Azure拿到我的计算机上,但也希望将来也用于部署.

I want to start programming Bots for Skype, Slack etc. I have setup a Bot in the Microsoft Azure Portal and enabled continuous deployment with Visual Studio Team Services (VSTS) and Visual Studio (VS). Which I just used to get the code from Azure to my computer but want to use in the future to deploy as well.

当我在VS中从Azure在本地运行股票Bot时,仅填写了LUISAppId和APIKey,当我向其发送消息时失败.

When I run the stock Bot from Azure locally in VS, with only the LUISAppId and APIKey filled in, it fails when I send a message to it.

这是错误代码:

iisexpress.exe Warning: 0 : Service url localhost:59706 is not trusted and JwtToken cannot be sent to it.

有人知道如何解决此问题吗? 我已经尝试过: MicrosoftAppCredentials.TrustServiceUrl(@"localhost");MicrosoftAppCredentials.TrustServiceUrl(@"localhost:59706");MessageController.cs

Does anyone know how to fix this? I already tried: MicrosoftAppCredentials.TrustServiceUrl(@"localhost"); and MicrosoftAppCredentials.TrustServiceUrl(@"localhost:59706"); in MessageController.cs

我意识到阻止我成功与bot对话的错误与众不同,可以通过使用代理解决.

I realized that the error that prevented me from successfully talking to the bot was something different and got resolved by using a proxy.

上面的控制台日志仍然存在:

The above console log though still exists:

iisexpress.exe Warning: 0 : Service url localhost:59706 is not trusted and JwtToken cannot be sent to it