System.NullReferenceException
I have this exception who randomly appears. Someone have an idea?
at Microsoft.Bot.Builder.Dialogs.Internals.Extensions.MaxBy[T,R](IEnumerable1 items, Func2 selectRank, IComparer1 comparer)
at Microsoft.Bot.Builder.Dialogs.LuisDialog1.BestIntentFrom(LuisResult result)
at Microsoft.Bot.Builder.Dialogs.LuisDialog1.<BestResultFrom>b__6_0(LuisResult result)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at Microsoft.Bot.Builder.Dialogs.Internals.Extensions.MaxBy[T,R](IEnumerable1 items, Func2 selectRank, IComparer1 comparer)
at Microsoft.Bot.Builder.Dialogs.LuisDialog1.BestResultFrom(IEnumerable1 results)
at Microsoft.Bot.Builder.Dialogs.LuisDialog`1.
I think this issue is external to my bot because I'm using my master branch who worked before and the code is unchanged. I faced this issue before but with a lower botbuilder knowledge, so I couldn't figure out if it's my code or not.
I'm quite sure that is because I have exhausted my Azure credit. Anyway the exception should mention that there is an issue with connecting Luis service.
this change which is not released yet should address this issue and raise the Luis service call failures as exception.