错误:机器人的MSA appId或密码不正确

问题描述 投票:4回答:2

嗨我在Bot框架中工作,因为我在将本地机器人模拟器发布到azure之后我正在面对这个问题,并且在bot模拟器中我提供了已发布的U​​RL和Microsoft appid以及Microsoft秘密机器人模拟器。当我连接到azure时,它会显示如下问题。

Command failed: 4294967295 System.AggregateException: One or more errors occurred. ---> System.Exception: Couldn't acquire lock, is another instance running at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut) at Squirrel.UpdateManager.<acquireUpdateLock>b__32_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at Squirrel.Update.Program.executeCommandLine(String[] args) at Squirrel.Update.Program.main(String[] args) at Squirrel.Update.Program.Main(String[] args) ---> (Inner Exception #0) System.Exception: Couldn't acquire lock, is another instance running at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut) at Squirrel.UpdateManager.<acquireUpdateLock>b__32_0() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.UpdateManager.<CheckForUpdate>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Squirrel.Update.Program.<CheckForUpdate>d__8.MoveNext()<--- {} 

POST 401 [conversationUpdate]

POST 401 [conversationUpdate]

错误:机器人的MSA appId或密码不正确。

编辑机器人的MSA信息

POST 401 [conversationUpdate]

错误:机器人的MSA appId或密码不正确。

编辑机器人的MSA信息

enter image description here

我删除了应用程序ID和密码并尝试在本地运行它然后它正常工作。

我研究了互联网,找不到任何解决我问题的解决方案。请帮忙。

提前致谢

azure visual-studio-2017 bots botframework
2个回答
0
投票

您可以尝试在机器人模拟器中使用http://localhost:3979/api/Messages但不要输入任何类型的ID和密码,并将其从web.config中删除

如下图所示:

enter image description here enter image description here

然后按ctrl + f5然后尝试。它将开始在您的本地环境中工作。

对于远程调试,您需要使用ngork。

如果您需要更多说明,请告诉我。


0
投票

显然,模拟器只允许测试本地机器人,不适用于已发布/托管的机器人。对于已发布,我正在通过“在线聊天测试”功能直接在Azure上进行测试

© www.soinside.com 2019 - 2024. All rights reserved.