Botframework-solutions: System.Net.Sockets.SocketException, wenn Assistant sich mit Skill verbindet

Erstellt am 1. März 2021  ·  4Kommentare  ·  Quelle: microsoft/botframework-solutions

Welches Projekt ist betroffen?

Virtueller Assistent + Skill (beide basierend auf VSIX-Vorlage)

In welcher Sprache ist das?

C#

Was geschieht?

Exception caught in SendErrorMessageAsync : System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions.

Was sind die Schritte, um dieses Problem zu reproduzieren?

  1. Sowohl VA als auch Skill werden in Azure bereitgestellt und veröffentlicht
  2. lief die botskills connect...
  3. Erneut veröffentlichte die VA
  4. Öffnen Sie den Emulator und testen Sie die Fähigkeiten über VA
  5. Fehler

    Was haben Sie erwartet?

Keine Ausnahme ausgelöst

Können Sie Protokolle, Fehlerausgaben usw. freigeben?

Stacktrace

Exception caught in SendErrorMessageAsync : System.Net.Http.HttpRequestException: An attempt was made to access a socket in a way forbidden by its access permissions.
 ---> System.Net.Sockets.SocketException (10013): An attempt was made to access a socket in a way forbidden by its access permissions.
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.Bot.Connector.Conversations.ReplyToActivityWithHttpMessagesAsync(String conversationId, String activityId, Activity activity, Dictionary`2 customHeaders, CancellationToken cancellationToken)
   at Microsoft.Bot.Connector.ConversationsExtensions.ReplyToActivityAsync(IConversations operations, String conversationId, String activityId, Activity activity, CancellationToken cancellationToken)
   at Microsoft.Bot.Builder.BotFrameworkAdapter.SendActivitiesAsync(ITurnContext turnContext, Activity[] activities, CancellationToken cancellationToken)
   at Microsoft.Bot.Builder.TurnContext.<>c__DisplayClass25_0.<<SendActivitiesAsync>g__SendActivitiesThroughAdapter|1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Bot.Solutions.Middleware.SetSpeakMiddleware.<>c.<<OnTurnAsync>b__8_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Bot.Builder.TranscriptLoggerMiddleware.<>c__DisplayClass3_0.<<OnTurnAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Bot.Builder.TelemetryLoggerMiddleware.<>c__DisplayClass7_0.<<OnTurnAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.Bot.Builder.TurnContext.SendActivityAsync(IActivity activity, CancellationToken cancellationToken)
   at SouthworksAssistant.Adapters.DefaultAdapter.SendErrorMessageAsync(ITurnContext turnContext, Exception exception) in C:\Users\GonzaloLorieto\source\repos\southworks-assistant\SouthworksAssistant\Adapters\DefaultAdapter.cs:line 87

Skillpakete

"Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.0" 
"Microsoft.Azure.CognitiveServices.ContentModerator" Version="2.0.0" 
"Microsoft.Azure.CognitiveServices.Language" Version="1.0.1-preview"
"Microsoft.Bot.Builder.AI.Luis" Version="4.9.3"
"Microsoft.Bot.Builder.AI.QnA" Version="4.9.3"
"Microsoft.Bot.Builder.ApplicationInsights" Version="4.9.3"
"Microsoft.Bot.Builder.Azure" Version="4.9.3"
"Microsoft.Bot.Builder.Integration.ApplicationInsights.Core" Version="4.9.3"
"Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.9.3" 
"Microsoft.Bot.Solutions" Version="1.0.1"
"Microsoft.Azure.Cosmos.Table" Version="1.0.8"
"Microsoft.Bot.Builder.Adapters.Slack" Version="4.9.3-preview" 
"Microsoft.Recognizers.Text" Version="1.5.0" 
"Microsoft.Recognizers.Text.DateTime" Version="1.5.0"

Assistentenpakete

"Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.0" 
"Microsoft.Azure.CognitiveServices.ContentModerator" Version="2.0.0" 
"Microsoft.Azure.CognitiveServices.Language" Version="1.0.1-preview" 
"Microsoft.Bot.Builder.AI.Luis" Version="4.9.3" 
"Microsoft.Bot.Builder.Adapters.Slack" Version="4.9.3-preview" 
"Microsoft.Bot.Builder.AI.QnA" Version="4.9.3" 
"Microsoft.Bot.Builder.ApplicationInsights" Version="4.9.3" 
"Microsoft.Bot.Builder.Azure" Version="4.9.3" 
"Microsoft.Bot.Builder.Integration.ApplicationInsights.Core" Version="4.9.3"
"Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.9.3" 
"Microsoft.Bot.Builder.LanguageGeneration" Version="4.9.3" 
"Microsoft.Bot.Solutions" Version="1.0.1" 
Bot Services Needs Triage Kobuk Bug customer-replied-to customer-reported

Hilfreichster Kommentar

@Batta32 - Kannst du dir das ansehen?

Alle 4 Kommentare

@Batta32 - Kannst du dir das ansehen?

Sicher! Danke @gonzalorieto für die Meldung dieses Problems. Wir werden in der nächsten Woche mit der Arbeit beginnen, sobald wir ein Update haben, werden wir es euch wissen lassen 😊.

Hallo @gonzalorieto , wie wir gelöst und den virtuellen Assistenten und die Fähigkeit in C# korrekt kommuniziert.

Wir empfehlen, das 60.slack-adapter-Beispiel zu überprüfen, da es den Slack-Adapter für den Slack-Kanal und den Bot Framework-Adapter für die Azure Bot Service-Kanäle und den Emulator konfiguriert.

Lass uns wissen, ob das hilft 😊.

Tolle! danke für die Hilfe. Geben Sie diesem Mann eine Gehaltserhöhung. Sie können dieses Problem schließen.

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

sujayvsarma picture sujayvsarma  ·  19Kommentare

bfbatch picture bfbatch  ·  37Kommentare

gagankohli2000 picture gagankohli2000  ·  25Kommentare

tomSauret847 picture tomSauret847  ·  22Kommentare

e-gonzalez picture e-gonzalez  ·  19Kommentare