E
E
Ethernets2016-09-06 21:26:01
C++ / C#
Ethernets, 2016-09-06 21:26:01

500 internal server error bot framework?

Good day to all, please help me understand. I created a Bot, uploaded it to somee hosting, connected it to the bot framework on the site, when I click the Test button, I get the following error log:

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 198.37.116.25:443
   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.<PingV3BotAsync>d__56.MoveNext() in C:\a\1\s\DevPortalLib\Controllers\BotManagerController.cs:line 1447

What could be the problem ? The second day I can’t figure it out, here is the Web.config:
<appSettings>
<!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
<add key="BotId" value="YourBotId"/>
<add key="MicrosoftAppId" value="954e920d-2b52-4b75-9320-585b0aa55bae"/>
<add key="MicrosoftAppPassword" value="KnZ27xf1dy56fFergTaT24c"/>

In the address to the hosting, where is the bot located:
Messaging endpoint
https://www.mybot.somee.com/api/messages

I don’t know what to write in BotId and nothing is said about this anywhere. Could it be a hosting issue? Help me please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question