在生产机器人代码中随机获取“ BadGateway”

时间:2019-04-10 15:34:01

标签: c# .net botframework

我主要是想弄清楚其他人是否在其bot框架代码方面遇到了问题,从而收到不良的网关响应

我不确定这是如何发生的,但我将根据要点发布堆栈跟踪:

https://gist.github.com/MilesWilde/ad90c78b5fc6f6a93a0e70766228a432

我将在堆栈跟踪中发布所有可访问的行:

C:\ Projects \ BasicBot.cs:第262行:

var results = await dialogContext.ContinueDialogAsync(cancellationToken);

C:\ Projects \ BasicBot.cs:第432行:

return await stepContext.BeginDialogAsync("citySelectDialog", initialCitySelection, cancellationToken: cancellationToken);

C:\ Projects \ BasicBot.cs:第887行:

return await stepContext.PromptAsync(
    "loginCitySelectPrompt",
    new PromptOptions
    {
        Prompt = activity,
        RetryPrompt = MessageFactory.Text("Please respond to the options on the card above"),
        Validations = "LoginCitySelectCard",
    });

C:\ Projects \ CustomPrompts \ Prompt2.cs:60行:

await OnPromptAsync(dc.Context, (IDictionary<string, object>)state[PersistedState], (PromptOptions)state[PersistedOptions], false, cancellationToken).ConfigureAwait(false);

C:\ Projects \ CustomPrompts \ CustomPrompt.cs:第37行:

await turnContext.SendActivityAsync(options.Prompt, cancellationToken).ConfigureAwait(false);

C:\ Projects \ Middleware \ Telemetry \ TelemetryLoggerMiddleware.cs:第100行:

var responses = await nextSend().ConfigureAwait(false);

出于NDA的原因,我无法共享整个项目,但是如果需要更多信息,我将尽我所能共享。

0 个答案:

没有答案