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

[.Net SDK, Question] Why am I getting "There was an error sending this message to your bot: HTTP status code InternalServerError"?

Open bommareddysandhya opened this issue 8 years ago • 13 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 4.6.1
  • Active Channels: Skype, Email, etc.
  • Deployment Environment: Azure App Service, and Bot Channels Registration

Issue Description

There was an error sending this message to your bot: HTTP status code InternalServerError for Bot application developed using VS 2017 and deployed bot application as Appservice and registered channels using Bot Channels Registration. the bot is working fine in web chat and emulator and getting error in Skype and email channel. Getting these two below error in Email and Skype channels 1.POST to the bot's endpoint failed with HTTP status 500 2.There was an error sending this message to your bot: HTTP status code InternalServerError

Kindly any one come across the issue please share your resolution steps.

Code Example

Using default Echo bot

bommareddysandhya avatar Jan 21 '18 16:01 bommareddysandhya

Hi @bommareddysandhya - Can you share the bot code that is causing the problem?

nwhitmont avatar Jan 22 '18 17:01 nwhitmont

Hi nwhitmont,

Git hub Issue url : https://github.com/Microsoft/BotBuilder/issues/4072

I have created simple Echo bot and deployed as web app and registered the email and skype channel using Web channel registration service in azure.

Bot was working in webchat & emulator , not working in email and skype also any specific reason for this .

Below are the error screen shot form azure channels.

Thanks & Regards,

Sandhya

On Mon, Jan 22, 2018 at 10:40 PM, nwhitmont [email protected] wrote:

Hi @bommareddysandhya https://github.com/bommareddysandhya - Can you share the bot code that is causing the problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/4072#issuecomment-359495537, or mute the thread https://github.com/notifications/unsubscribe-auth/AbhLiPiTXRRf-1XxkQ9cWnBSJgqsutdAks5tNMEegaJpZM4Rl4FN .

bommareddysandhya avatar Jan 23 '18 16:01 bommareddysandhya

I am unable to reproduce this, is there any more information you can give us

JasonSowers avatar Jan 23 '18 21:01 JasonSowers

to get the resolution for the issue what other information do you required.In Application insight I am getting the below error. In Skype and Webchat it was working fine. This is on critical ,any help will be appreciated . forbiddenerror

bommareddysandhya avatar Jan 31 '18 06:01 bommareddysandhya

I am able to debug the code when email received to ID , but reply is not sending and Error getting logged in Application Insight .

bommareddysandhya avatar Jan 31 '18 06:01 bommareddysandhya

Hi bommareddysandhya, Is issue resolved? I am facing same problem. I have developed Bot in Visual Studio and deployed it to azure and connected to Email . On receiving new email , I am getting same 2 eoors.

PriyaB07 avatar Feb 05 '18 08:02 PriyaB07

Still my issue not solved , getting the same error in email channel and Application insight exception was logging as "Authorization for Microsoft App ID f7e1dbda-7098-4512-ad6b-29d1fa0e0016 failed with status code Forbidden and reason phrase 'Forbidden'Response status code does not indicate success: 403 (Forbidden)."

bommareddysandhya avatar Feb 05 '18 11:02 bommareddysandhya

When you publish, is the Site URL http or https? It should be https. This bit me yesterday.

ghost avatar Feb 06 '18 21:02 ghost

Which version of the BotBuilder SDK are you using?

EricDahlvang avatar Feb 06 '18 22:02 EricDahlvang

Bot builder version is 3.13.0.3 and when publishing the site getting http only, but in configuration of azure channel registration used https://

bommareddysandhya avatar Feb 10 '18 12:02 bommareddysandhya

After multiple attempts of saving email ,It started working automatically though while saving the there was same error 'Unable to Save'.

PriyaB07 avatar Feb 17 '18 11:02 PriyaB07

@PriyaB07 Can you please let us know if the issue still persist?

fanidamj-zz avatar Jun 21 '18 22:06 fanidamj-zz