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

[Feature Request] Add PrompDialog option to not post TooManyAttempts error back to user

Open LTsLlama opened this issue 9 years ago • 6 comments

SDK language: C# SDK version: 3.5.9.0 Development environment: localhost

We have multiple requirements to handle the failed parsing events on prompt dialogs differently. This is possible by setting the attempts to 0 and handling the TooManyAttemptsException, the only problem is the TooManyAttepts error is still posted to the client before the exception is thrown.

We need an option to turn off the TooManyAttepts error being posted to the client.

LTsLlama avatar May 08 '17 04:05 LTsLlama

@nwhitmont This is a feature request, not a question.

LTsLlama avatar May 09 '17 00:05 LTsLlama

Cool...I was looking for something like this!!!

PrasadGautham avatar May 09 '17 04:05 PrasadGautham

Yes needed, I would also like to inspect the user input, rather then completely fail.

chrizy avatar Sep 19 '17 12:09 chrizy

We also have the need set the PromptOptions.attempts to 0 and handle the TooManyAttemptsException ourselves, but as previously mentioned, it is presently not possible to prevent a posting of the error back to the user. The best we can do is set the PromptOptions.tooManyAttempts to an empty string, so the user sees a blank message before we handle the error ourselves.

gjgriffith avatar Nov 02 '17 18:11 gjgriffith

#4533

JasonSowers avatar Apr 26 '18 23:04 JasonSowers

Workaround here is to set the retries to a very large number. You can also catch and swallow the too many attempts exception. There are no plans to add support for this to the V3 SDK.

vishwacsena avatar Jun 25 '18 23:06 vishwacsena