New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization for Microsoft App ID failed with status code Forbidden #2003
Comments
I found a root of my issue. My bot has a predefined list of users in order to being able to send them proactive messages. Using this information I am able to send proactive message to a user via So the reason I started getting an error was in a fact that skype channelUrl have been changed. After changing it the issue was solved. But now I have a question: Thank you in advance. |
I don't think we have a mechanism yet to resolve the ServiceURL based on the Channel ID, but it's an understandable request. For now, the best practice is to save the ServiceURL. |
Thank you @willportnoy for the quick reply. So I think we can close this ticket. |
@willportnoy How long is the validity of a conversation. when I tried the messaging, I found it to be less than 24 hrs. is it so? |
I face the same problem as @alokraj68 . I use the same method by saving the At first the SendToConversationAsync works fine. But after about 20 hours I get: |
@sogeg Exactly same problem for me. It works sometimes, then stops with this message. no idea why. |
@alokraj68 Thank you. I copied @lisitsyn-a comment to indicate that I am using the same method. However the issue remains. I get the exception after some time..... Any ideas? I also opened a new issue at: |
Hi guys!
I know there are a lot of similar issue related to authorization,
But I faced with mine several hours ago. My bot had working fine and I had not change(deploy) anything with it when it stop working.
Here is a more details about the issue:
My bot has two types of messages:
The bot IS working fine when it reply to a user in a Dialog mode.
But when it send message via connector.Conversations.SendToConversationAsync (proactive message) it started fail with UnauthorizedAccessException.
Here is a stack trace:
2017-01-10T07:32:47 PID[4732] Error An error has occurred: System.UnauthorizedAccessException: Authorization for Microsoft App ID ##### failed with status code Forbidden at Microsoft.Bot.Connector.JwtTokenRefresher.<SendAsync>d__2.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 System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Microsoft.Bot.Connector.Conversations.<SendToConversationWithHttpMessagesAsync>d__6.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 Microsoft.Bot.Connector.ConversationsExtensions.<SendToConversationAsync>d__15.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 DeploymentBot.WebApp.NotifierService.<SendAsync>d__3.MoveNext().
Again, the bot is working fine for the past two weeks and no changes were made.
I use my bot with Skype channel.
Thank you!
The text was updated successfully, but these errors were encountered: