Shimin
Shimin

Reputation: 21

LUIS with bot framework unable to deserialize LUIS response

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

Answers (2)

user6269864
user6269864

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

The Memebot
The Memebot

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

Related Questions