microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.5k stars 2.44k forks source link

Bot Connector - Error when testing connection #774

Closed isamllr closed 8 years ago

isamllr commented 8 years ago

Hi, when testing my bot (node.js, bot builder v3.1.0.0) from the Bot Connector, I am getting the following:

500 InternalServerError System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 104.42.188.146:3798 at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) --- End of inner exception stack trace --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Intercom.DevPortal.Server.Controllers.BotManagerController.d__52.MoveNext() in C:\a\1\s\DevPortalLib\Controllers\BotManagerController.cs:line 1348

Is there something wrong with the Web App Settings (using MicrosoftAppID & MicrosoftAppPassword), the Web App properties in general (web sockets are activated), the endpoint (https://_somename_.azurewebsites.net/api/messages), or might there be a real issue?

I was able to test locally hardcoding password & appid using the emulator 3.0.0.58 without https. Testing in the cloud using grok did not work out (connection/socket errors)

Any hints? Thanks a lot, I

isamllr commented 8 years ago

Got my endpoint wrong, did not remove the port of the endpoint in the Bot Connector. Closing.