botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

System.NullReferenceException

Open GhostAtom opened this issue 10 years ago • 3 comments

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.d__7.MoveNext()

GhostAtom avatar Nov 14 '16 22:11 GhostAtom

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.

GhostAtom avatar Nov 15 '16 09:11 GhostAtom

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.

GhostAtom avatar Nov 15 '16 18:11 GhostAtom

this change which is not released yet should address this issue and raise the Luis service call failures as exception.

msft-shahins avatar Nov 17 '16 02:11 msft-shahins