Getting Forbidden when sending messages from Teams to directline in Bot

Brass Contributor

We are getting forbidden message exception while sending message from Teams groups to webchat.

Seeing the below error log in Azure bot channel,

Webchat: There was an error sending this message to your bot: HTTP status code InternalServerError

Directline : There was an error sending this message to your bot: HTTP status code GatewayTimeout

Teams : Error occurred while communicating with bot

But we are able to send messages from Webchat to Teams, Teams to Teams , Teams to Emulator.

Issue only when sending message from Teams to Directline/Webchat

7 Replies
@Lakshmi_145 - Could you please share how you are sending message from Teams to Bot?

@Nivedipa-MSFT 

 

We are using  @botName in front of every messages 

 

 

@Lakshmi_145 - Could you please update the Teams version and check again?
@Lakshmi_145 - Could you please confirm is your issue resolved or are you still facing this issue?

@Nivedipa-MSFT 

 

Yes we are still facing the issue.

 

@Lakshmi_145 - Are you developing any Teams app? If yes, Can you please share the repro steps?

@Nivedipa-MSFT 

 

You can close this issue . We got the resolution, bot instance for teams got deleted from cosmos DB that's the reason why while sending message for exception saying forbidden