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

500 internal server error- Azure web app hosting a botframework solution

Open KwstasBol opened this issue 9 years ago • 15 comments

Bot Info

  • Bot handle: amvrosiabot
  • App ID: fe2f78fd-c257-4e0f-92d6-79906b847172
  • SDK Platform: .NET
  • SDK Version: 4.6.1
  • Active Channels: Facebook Messenger
  • Deployment Environment: Azure App Service

Issue Description

My bot connects to the database of mine, takes the foods of the university restaurant compared to the current day, and displays the results. Although, it was operational, out of the blue we had a 500 internal server error and the message of the user was just sent to my Azure web service, without responding back.

Expected Behavior

The expected result was the response the the messenger user with the choices as show below at Expected Behavior

Actual Results

image

image

Expected Behavior

image

KwstasBol avatar Sep 14 '17 15:09 KwstasBol

What SDK version are you using? It looks like you put in the .NET version in your form.

JasonSowers avatar Sep 14 '17 15:09 JasonSowers

Could you please check if this is the same issue as this one? https://github.com/Microsoft/BotBuilder/issues/3466

advl03 avatar Sep 14 '17 18:09 advl03

yeah i checked it i hope we find a solution soon! 4.6.1 is the version i guess, as i saw...

KwstasBol avatar Sep 14 '17 18:09 KwstasBol

@KwstasBol are you still experiencing this issue?

EricDahlvang avatar Sep 14 '17 22:09 EricDahlvang

Yes @EricDahlvang still the same httphandler-pipeline error..

KwstasBol avatar Sep 15 '17 07:09 KwstasBol

I am closing the issue, because the solution came. I had to change the Azure app service to bot service which is merged with the bot framework developer envinroment.

KwstasBol avatar Sep 19 '17 07:09 KwstasBol

Hi @KwstasBol . Could you share some detailed insights of what was happening with your bot and how you fix it? I'm facing a similar issue.

iamthewall avatar Oct 02 '17 19:10 iamthewall

Yes @iamthewall. Well all of the sudden after being one year online, the bot stopped. This event was due to my using web app at Azure and because of using the older version of BotFramework SDK. Eventually i made the transition to BotService which you can have for free with an Azure subscription and change the code of your app to the current version of the SDK. To put it in a nutshell, never ever again have a bot solution on a web app,only bot service. For more,inform me.

KwstasBol avatar Oct 02 '17 20:10 KwstasBol

@KwstasBol Bot service, you mean Azure Functions solution?

savahmel avatar Oct 06 '17 09:10 savahmel

image This one, but you must make a subscription firstly. It is said that it is free,but it charged me 1 euro. Nevertheless, it is worth it.

KwstasBol avatar Oct 06 '17 22:10 KwstasBol

Thanks

savahmel avatar Oct 08 '17 10:10 savahmel

@KwstasBol I have the same issue. Tried to migrate my existing bot from web app to bot service. However, I noticed that upon a creation of Bot Service it requires to create a new bot only. How did you manage to migrate existing bot to the Bot Service?

soloveyalex avatar Oct 17 '17 21:10 soloveyalex

Well, i was not the one migrating the new one,because i do not expertise in C# issues, but there were really small changes. However, i recommend you to consider in developing in Node.js,because it is really fast and more understandable to my opinion and if you have whichever problem in that platfom i could really help you!. So, i could maybe help you if you could provide me with some code, but i dont promise anything as long as it is written in C# :)

KwstasBol avatar Oct 17 '17 23:10 KwstasBol

@KwstasBol It's not a question of programming platform and language. The problem is when you create Azure Bot Service it creates a NEW bot. With NEW name and MicrosoftAppID. I see no way to tell it "please create Azure Bot Service for already registered and configured bot"

In this perspective my question was regarding your statement "Eventually i made the transition to BotService". I'm wondering to know how to "transit" EXISTING bot rather then create a NEW one.

So, how did you do that? Or, you didn't and just did register a new one with the same code?

soloveyalex avatar Oct 18 '17 06:10 soloveyalex

Okay.Firstly i used the new MicrosoftAppId, there is no problem in using this. Nevertheless, you are right about not having the option of already registered bot. Secondly, certainly the new name is needed everywhere.The facebook keys of course stay the same.Last but not least, the answer to your last question,is that i did a new with the same code.That's all,nothing to worry about.(so facebook data remains, bot framework data changes and becomes new). Hope it helps...

KwstasBol avatar Oct 18 '17 07:10 KwstasBol