【发布时间】:2016-08-18 08:55:01
【问题描述】:
我正在尝试将我通过 Visual Studio 2015 用 C# 编写的机器人发布到 AWS。我安装了 Amazon Cloud SDK 并能够成功地将机器人发布到 AWS。我用它提供的地址(http://benbot-dev.us-west-2.elasticbeanstalk.com/)更新了机器人端点。但是当我访问 Microsoft Bots 站点并测试机器人连接时,它显示无法连接到远程服务器。请帮忙。我认为这是 https 端点问题。但我不确定如何获取 API 网关端点,如果我应该这样做的话。
<<<<<<<<<<
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 52.42.245.162: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__54.MoveNext() in C:\a\1\s\DevPortalLib\Controllers\BotManagerController.cs:line 1420
>>>>>>>>>>>>>>>>
【问题讨论】:
-
本地主机的“ping”可以到达 52.42.245.162 吗?如果是,您可以尝试从您的 AWS 服务中执行相同的操作吗?
-
嗨@oldbam。 Txs 寻求帮助。不,我无法ping通。请求超时。我在想这意味着该机器人已发布但未链接到某些 API 服务???或者类似的东西,它有一个可以发送和接收消息的消息端点。但我不知道这是如何在 AWS 中完成的。他们让事情变得如此复杂。
标签: c# amazon-web-services bots botframework botconnector