Getting this error every time I try to send a message to my bot, or after it responds with three messages per line.
I put try/catch around the code that gets the exception (from the call to context.PostAsync ) and got this in my Application Insights instance:
An error occurred while sending the request. Unable to connect to the remote server An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:9000
Of course, nothing in my code hits localhost ... does anyone else see this?
Code that executes when an error occurs:
var j = JToken.Parse(responseJson); foreach (var b in j["value"]) { await context.PostAsync($"{b.Value<string>("id")} - {b.Value<string>("name")}"); }
When I launch the bot locally and use the emulator for testing, I get 3 output elements, but 500 on the 4th (which is not distorted so that json resolution does not work).
When I publish to Azure App Services, I get 500 errors without output.
botframework
bc3tech
source share