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

System Exception POST to Bot failed: POST to the bot's endpoint failed with HTTP status 500 POST to the bot's endpoint failed with HTTP status 500

Open CalvinFengDatacom opened this issue 8 years ago • 5 comments

I think I got the same issue with @hardikp81 #3199 while user send a message to bot, then Web App throws an exception which indicates an error occurred in the response Message from Bot endpoint: https://botname.azurewebsites.net/api/messages

Bot Info

  • SDK Platform: C#
  • SDK Version: 3.15.2.2
  • Active Channels: Direct Line
  • Deployment Environment: Azure App Service

Issue Description

Bot service throws the exception when user send the message to bot. Microsoft.Bot.ChannelConnector fails to send the message to Bot. Please find the exception below:

Microsoft.Bot.Schema.BotException: at Microsoft.Bot.ChannelConnector.BotAPI+d__30.MoveNext (Microsoft.Bot.ChannelConnector, Version=3.2.2.1, Culture=neutral, PublicKeyToken=null) Inner exception System.Exception handled at Microsoft.Bot.ChannelConnector.BotAPI+d__30.MoveNext: at Microsoft.Bot.ChannelConnector.BotAPI+d__30.MoveNext (Microsoft.Bot.ChannelConnector, Version=3.2.2.1, Culture=neutral, PublicKeyToken=null)

CalvinFengDatacom avatar Jul 03 '18 22:07 CalvinFengDatacom

There are a number of things that can cause a HTTP 500 error. Can you post your RootDialog.cs and MessageController.cs, please.

jwiley84 avatar Jul 05 '18 23:07 jwiley84

@jwiley84 Thanks you! 👍 I got the solution from my colleague, I will close this issue soon. If I got the issue again, then I will reopen it.

CalvinFengDatacom avatar Jul 05 '18 23:07 CalvinFengDatacom

What was your solution Can you please post details if possible?

jignesh84 avatar Jul 11 '18 13:07 jignesh84

I am also getting the same error if possible I would like to have some details on the solution?

fkatada avatar Jul 17 '18 01:07 fkatada

Are you receiving message on bot endpoint? I would log requests and response on bot side to see if message is even reacting to bot.

On Mon, Jul 16, 2018 at 9:39 PM frank [email protected] wrote:

I am also getting the same error if possible I would like to have some details on the solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Microsoft/BotBuilder/issues/4822#issuecomment-405431819, or mute the thread https://github.com/notifications/unsubscribe-auth/AbWhNsCUL4mempLjPSehARQ_Qc0ri7tcks5uHUBNgaJpZM4VBt0c .

-- Thanks, Jignesh Patel

jignesh84 avatar Jul 17 '18 13:07 jignesh84