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
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
{
private LuisResult _myPrivateProp;
}
To:
[Serializable]
public class YourDialog : LuisDialog
{
private string _myPrivateProp;//or whatever
}