我試圖發佈一個bot,我用C#通過visual studio 2015編碼到AWS。我安裝了Amazon Cloud SDK,並能夠成功將bot發佈到AWS。我用它給的地址更新了bot端點(http://benbot-dev.us-west-2.elasticbeanstalk.com/)。但是當我去微軟Bots站點並測試機器人連接時,它說無法連接到遠程服務器。請幫忙。我認爲這是https端點問題。但是我不確定如何獲得API網關端點。微軟機器人在AWS上發佈後出現連接錯誤
<<<<<<<<<<
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
嗨@oldbam。發送幫助。不,我無法ping通。請求超時。我在想t意味着這個機器人已經發布了,但它沒有鏈接到某些API服務?或類似的東西,它有一個消息端點,可以發送和接收消息。但我不知道這是如何在AWS中完成的。他們讓它變得如此複雜。 –