Reputation: 21
My call to LUIS encountered this error:
"Unable to deserialize LUI" with - InnerException {"Unexpected character encountered while parsing value: M. Path '', line 0, position 0."} System.Exception {Newtonsoft.Json.JsonReaderException}
Any ideas on this error?
Thank you
Upvotes: 1
Views: 333
Reputation:
That happened for me when I was trying to call the built-in LUIS app (the one that does Cortana-like functions) using Bot Builder v.3.3.0.
When I removed that LuisModel, the error ceased.
Upvotes: 0
Reputation: 3549
You need to add [Serialize] at the top of any class you use in your main dialog (including the dialog), that is because the communication between the bot and the user is via JSON, so any object should be serializable
Upvotes: 1