Unable to connect to OnCommand API server
Applies to
OnCommand API service 2.x
Issue
Unable to connect to OnCommand API server from one of the customer windows machine.
Below error observed while trying to access the API using URL: https://<API_server_IP>:port/api/1.0/ontap/clusters
{\"Exception\":{\"ClassName\":\"System.Net.WebException\",\"Message\":\"Unable to connect to the remote server\",\"Data\":null,\"InnerException\":{\"NativeErrorCode\":10060,\"ClassName\":\"System.Net.Sockets.SocketException\",\"Message\":\"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\",\"Data\":null,\"InnerException\":null,\"HelpURL\":null,\"StackTraceString\":\" at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)\\r\\n at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)\\r\\n at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)\",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":\"8\\nInternalEndConnect\\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\\nSystem.Net.Sockets.Socket\\nVoid InternalEndConnect(System.IAsyncResult)\",\"HResult\":-2147467259,\"Source\":\"System\",\"WatsonBuckets\":null},\"HelpURL\":null,\"StackTraceString\":\" at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)\\r\\n at RestSharp.Http.GetRawResponseAsync(IAsyncResult result, Action`1 callback)\\r\\n at RestSharp.Http.ResponseCallback(IAsyncResult result, Action`1 callback)\",\"RemoteStackTraceString\":null,\"RemoteStackIndex\":0,\"ExceptionMethod\":\"8\\nEndGetResponse\\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\\nSystem.Net.HttpWebRequest\\nSystem.Net.WebResponse EndGetResponse(System.IAsyncResult)\",\"HResult\":-2146233079,\"Source\":\"System\",\"WatsonBuckets\":null},\"StatusCode\":0}", "correlationId":"23586d84-b3ce-474d-a0c6-356900469abd" }