microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.48k stars 2.44k forks source link

Microsoft.Bot.Connector: Authorization for Microsoft App ID "X" failed with status code Forbidden. #2205

Closed rupeshtech closed 7 years ago

rupeshtech commented 7 years ago

I am already seeing some issue related to this same issue, but none of them helped.

I am creating a BOT using azure bot service and set some intents in LUIS. When I am testing bot in Azure Portal getting the issue Functions.messages. Microsoft.Bot.Connector: Authorization for Microsoft App ID e1f860e9-eced-4417-9dac-f77eb985ed19 failed with status code Forbidden.

My bot name is tamtambot

Andrea-Orimoto commented 7 years ago

Hi @rupeshtech ,

please review this issue https://github.com/Microsoft/BotBuilder/issues/1641, it might be related. Are you replying to a ping message?

let me know if this doesn't solve your issue.

rupeshtech commented 7 years ago

Thanks for referring the isse 1641, but that doesn't help. "Are you replying to a ping message?". I didnt get this Question completely but I think the following line await Conversation.SendAsync(activity, () => new BasicLuisDialog()); is throwing error. I have added a screenshot for detail.

bot_error2

vovanb commented 7 years ago

same problem

willportnoy commented 7 years ago

@rupeshtech can you share your packages.config so we can see what versions of Microsoft.Bot.* packages you're using?

rupeshtech commented 7 years ago

I have uploaded the whole solution on git hub... please find it here https://github.com/rupeshtech/tamtambot

rupeshtech commented 7 years ago

guys , any update??

willportnoy commented 7 years ago

Sorry for the delay in response.

@rupeshtech we've made a release of the Bot Builder with some updated diagnostics for authentication issues: https://github.com/Microsoft/BotBuilder/releases/tag/Nuget3.5.3

Otherwise, we recommend:

https://docs.botframework.com/en-us/technical-faq/#how-can-i-troubleshoot-my-bots-authentication

punitganshani commented 7 years ago

@willportnoy Even with Microsoft.Bot.Builder 3.5.5 I am facing same issue

Authorization for Microsoft App ID xxxx-xxxx failed with status code Forbidden and reason phrase 'Forbidden'

Any suggestions?

willportnoy commented 7 years ago

@punitganshani what happened when you followed the steps in https://docs.botframework.com/en-us/technical-faq/#how-can-i-troubleshoot-my-bots-authentication ?

rupeshtech commented 7 years ago

seems that issue is fixed with new realease...