What's causing 500 Internal Server Error due to localhost:9000 being hit in bot framework?

后端 未结 3 1822
南旧
南旧 2021-01-21 12:31

Getting this error every time I try to send a message to my bot, or after it responds with 3 messages in a row.

I put a try/catch around the code that\'s ge

相关标签:
3条回答
  • 2021-01-21 12:32

    I was also facing the “500 internal server error” updating to the latest "Bot Framework Emulator" solved my issue.

    Link to Bot Framework Emulator :

    Documentation:

    Hope this helps.

    0 讨论(0)
  • 2021-01-21 12:35

    We were having a similar issue in our app. Managed to resolve the 500 Invalid responses by not having a private LuisResult property in our dialog class that derived from LuisDialog.

    I guess as the class was marked as Serializable it tried to serialize all the properties and a LuisResult can't be serialized.

    Here's a code snippet:

    Change:

    [Serializable]
    public class YourDialog : LuisDialog<MySerializableClass>
    {
        private LuisResult _myPrivateProp;
    }
    

    To:

    [Serializable]
    public class YourDialog : LuisDialog<MySerializableClass>
    {
        private string _myPrivateProp;//or whatever
    }
    
    0 讨论(0)
  • 2021-01-21 12:56

    Did you connect to your deployed service via the emulator?

    If so that could generate this error, because when we see a message from channelId="emulator" async messages are routed to http://localhost:9000. That would cause this port to be used.

    To test it deployed you should start with the Test window on the bot configuration page, or use the web chat control.

    0 讨论(0)
提交回复
热议问题