botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Failed on "Test connection to your bot"

Open NOTPOWERUSER opened this issue 9 years ago • 5 comments

I got following message after I press the button "Test" on my bot's page.

500 InternalServerError System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult) at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar) --- 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.<PingV3BotAsync>d__76.MoveNext() in D:\a\1\s\DevPortalLib\Controllers\BotManagerController.cs:line 2038

NOTPOWERUSER avatar Feb 20 '17 10:02 NOTPOWERUSER

It sounds like your SSL certificate is invalid - is it a test certificate?

Otherwise,

https://docs.botframework.com/en-us/technical-faq/#how-can-i-troubleshoot-my-bots-authentication

willportnoy avatar Feb 22 '17 16:02 willportnoy

Thanks your!! I used self-signed certification to bind my bot. It seems this certification is unable to be trust. After I applied for a valid certification from GlobalSign and import to my server, now It's working

NOTPOWERUSER avatar Mar 03 '17 09:03 NOTPOWERUSER

Please am having the same problem too , what did you mean by SSL certificate, please if possible can you provide a Step by Step procedure for that,

huxaiphaer avatar Mar 04 '17 19:03 huxaiphaer

i'm having the same issue, what is the resolution?

ranmax123 avatar Mar 18 '17 06:03 ranmax123

@ranmax123 Do you use self-signed certificate created by your bot server? If so, Bot connector will treat as invalid certificate and you can go to the following link to get a valid sign. https://www.globalsign.com/en/

andy51002000 avatar Mar 19 '17 01:03 andy51002000