From eeab3345a50e2f0a497aecfb945d5e8c604da355 Mon Sep 17 00:00:00 2001 From: xieofxie Date: Wed, 24 Jun 2020 14:13:26 +0800 Subject: [PATCH] hope to catch the exception --- .../BotFrameworkHttpAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs index 60ddc13ad2..21bb60a94a 100644 --- a/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs +++ b/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/BotFrameworkHttpAdapter.cs @@ -197,8 +197,8 @@ private async Task ConnectWebSocketAsync(IBot bot, HttpRequest httpRequest, Http } catch (Exception ex) { - httpRequest.HttpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError; - await httpRequest.HttpContext.Response.WriteAsync($"Unable to create transport server. Error: {ex.ToString()}").ConfigureAwait(false); + // httpRequest.HttpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError; + // await httpRequest.HttpContext.Response.WriteAsync($"Unable to create transport server. Error: {ex.ToString()}").ConfigureAwait(false); throw ex; }