botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

User not able to see anything (Error), when Bot Service returns status code 403

Open imailer opened this issue 8 years ago • 6 comments

Bot Info

  • SDK Platform: Bot REST Connector
  • SDK Version: N.A.
  • Active Channels: MS Teams
  • Deployment Environment: Own deployment environment

Issue Description

Hi Folks,

I was trying out authentication for Microsoft Bot messages and noticed that user doesn't receives any notification / message / error when the request is rejected with HTTP 403 (forbidden).

User should be able to see something / error for that.

Code Example

Reproduction Steps

  1. Create a bot with Microsoft and use the app id / password to configure you simple bot service.
  2. User sends "Hi" message from the bot. Bot Connector makes a post request to the bot service endpoint.
  3. Try explicitly sending HTTP 403 message as status for the request.
  4. User doesn't see anything / Error on the chat UI.

Expected Behavior

User should be able to see some error message indicating the message wasn't sent/delivered

Actual Results

User is not able to see anything. It appears to user as if the message has been sent.

imailer avatar May 25 '18 11:05 imailer

Hi Jason, Any updates for the issue ?

imailer avatar Jun 01 '18 08:06 imailer

Hi @imailer2015,

Unfortunately, this isn't a Bot Framework issue and changes made in the BF code will have no effect. It is related to how MS Teams reports a 403 error back to the user when received from the bot.

stevkan avatar Jun 05 '18 19:06 stevkan

So, MS-Teams team should take the bug in their cart. Why on the earth are they making HTTP-200 & HTTP-403 the same ?

imailer avatar Jun 05 '18 20:06 imailer

Unfortunately, I don't have an answer to that question. But, yes, it should be raised as a bug.

stevkan avatar Jun 08 '18 19:06 stevkan

@imailer2015 you could try reporting the issue here https://github.com/OfficeDev/BotBuilder-MicrosoftTeams I'm not sure how active they are on that GitHub though.

JasonSowers avatar Jun 08 '18 22:06 JasonSowers

Help me!

Thomas

On Fri, May 25, 2018, 04:18 imailer2015 [email protected] wrote:

Bot Info

  • SDK Platform: Bot REST Connector
  • SDK Version: N.A.
  • Active Channels: MS Teams
  • Deployment Environment: Own deployment environment

Issue Description

Hi Folks,

I was trying out authentication for Microsoft Bot messages and noticed that user doesn't receives any notification / message / error when the request is rejected with HTTP 403 (forbidden).

User should be able to see something / error for that. Code Example Reproduction Steps

  1. Create a bot with Microsoft and use the app id / password to configure you simple bot service.
  2. User sends "Hi" message from the bot. Bot Connector makes a post request to the bot service endpoint.
  3. Try explicitly sending HTTP 403 message as status for the request.
  4. User doesn't see anything / Error on the chat UI.

Expected Behavior

User should be able to see some error message indicating the message wasn't sent/delivered Actual Results

User is not able to see anything. It appears to user as if the message has been sent.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/4658, or mute the thread https://github.com/notifications/unsubscribe-auth/AM3U2eo9yizvhKtW-CFvHnqOT3TcACsiks5t1-iKgaJpZM4UNza9 .

Tcoop69 avatar Aug 06 '18 17:08 Tcoop69