无法发送JwtToken-Microsoft Azure Bot-LUIS [英] JwtToken cannot be sent - Microsoft Azure Bot - LUIS

查看:90
本文介绍了无法发送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

这篇关于无法发送JwtToken-Microsoft Azure Bot-LUIS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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