How to avoid an error "invalid need: expected Call, have Poll" in Bot Framework c #

0

I am running a bot bot with Bot Framework technology in c #, sometimes it generates an exception of typo System.Exception that has the following message: invalid need: expected Call, have Poll

According to the Stack Trace, the error is generated in the following method:

private async Task ShowRequiredDestinationTripAsync(IDialogContext context)
    {
        if (this.tripModelDialog.DestinationTrip == null)
        {
            await context.PostAsync($"Hacia donde te diriges?(solo escribe el nombre de la ciudad de destino, ej. Villao)");

            context.Wait(this.ValidationDestinationTrip); //aquí es el error
        }
        else
        {
            await ShowRequiredDateTripAsync(context);
        }
    }

When testing in the development environment, this does not happen; and in the productive environment happens on some occasions

    
asked by Jeisson 20.01.2018 в 17:01
source

0 answers