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

quit command

Open rlilov opened this issue 10 years ago • 2 comments

since the last release, typing "quit" with intention to exit the chat does not seem to work i get Internl server error. (using c#)

rlilov avatar May 20 '16 08:05 rlilov

This is most likely because you are not handling the FormCanceledException. If you are doing a chain, you need to use DefaultIfException to swallow it.

chrimc62 avatar May 22 '16 20:05 chrimc62

I got "text": "Exception: Microsoft.Bot.Builder.FormFlow.FormCanceledException1[Microsoft.Bot.Sample.AnnotatedSandwichBot.SandwichOrder]: Form quit.\r\n at Microsoft.Bot.Builder.FormFlow.FormDialog1.<MessageReceived>d__14.MoveNext() in C:\\PhoneBook\\BotBuilder-master\\CSharp\\Library\\FormFlow\\FormDialog.cs:line 499\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n at Microsoft.Bot.Builder.Dialogs.Internals.DialogTask.ThunkResume1.d__4.MoveNext() in C:\PhoneBook\BotBuilder-master\CSharp\Library\Dialogs\DialogTask.cs:line 120\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n at Microsoft.Bot.Builder.Internals.Fibers.Wait2.<Microsoft-Bot-Builder-Internals-Fibers-IWait-PollAsync>d__19.MoveNext() in C:\PhoneBook\BotBuilder-master\CSharp\Library\Fibers\Wait.cs:line 247\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at ` using standard sample AnnotatedSandwichBot Where I need to catch exception to prevent sending it from Bot after You quit on Sandwich--maybe you can finish next time!

vovanb avatar Jan 25 '17 15:01 vovanb