microsoft / botbuilder-tools

Welcome to the Bot Framework Tools repository, which is the home for a set of tools for developers building bots with the Microsoft Bot Framework
https://github.com/Microsoft/botframework
MIT License
444 stars 262 forks source link

Dispatch Refresh terminates with Object Reference not set error #1354

Closed singzzz closed 5 years ago

singzzz commented 5 years ago

Tool

Name: [Msbot|Ludown|LUIS|QnAMaker|Chatdown|Dispatch|LuisGen] Version: 1.5.8 OS: macOS Mojave

Describe the bug

dispatch refresh command does not complete, terminates at the republish stage with Object Reference error

To Reproduce

run the dispatch refresh command

Expected behavior

Refresh completes and dispatch models update

Screenshots

dispatch refresh --luisSubscriptionKey ** --luisSubscriptionRegion westeurope Exporting services for dispatch... etc... Creating dispatch LUIS model json... Creating training data... WARNING: Number of samples in '***/model_001/train.txt' that were used by multiple categories: 60 WARNING: very few samples (breaking-point for debugging purpose), foldSize=0.2, foldsCount=5, Samples.Length=1, category=None, TrainingSamplesCount=1, TestingSamplesCount=0 etc... Training LUIS_1... Training LUIS_2... etc... Importing dispatch model... Setting up intents to child services mapping for dispatch... Add subscription key and publish child LUIS apps... Publishing LUIS_1 model...

ERROR Object reference not set to an instance of an object.


REFRESH Usage: dispatch refresh [options]

Retrain and republish existing LUIS dispatch application after modifications. Dispatch application id will be unchanged.

Additional context

Add any other context about the problem here.

[bug]

EdwinOtten commented 5 years ago

I am having the same issue on botdispatch 1.5.8. When it starts publishing the first child model, the error is thrown.

aishwaryaumachandran commented 5 years ago

I'm facing the same issue as well. When it tries publishing the first child model

anusharr commented 5 years ago

Assigning the issue to @tsuwandy. The issue is similar to the dispatch eval error.

tsuwandy commented 5 years ago

@EdwinOtten, @aishwaryaumachandran, something changed with LUIS publishing API. I'm not sure yet why but publish now starts throwing error. However, LUIS dispatch app is created and published to LUIS so please ignore the error for now. Investigating the error at the moment, thanks!

tsuwandy commented 5 years ago

Quick update. I contacted LUIS team and they are working on mitigating the issue at the moment.

tsuwandy commented 5 years ago

@EdwinOtten, @aishwaryaumachandran, I have confirmed that this issue is now mitigated. Please let me know otherwise.