2016-12-02 80 views
1

我在連接到SoftLayer產品/訂單API時遇到問題。SoftLayer(多個)客戶端在API升級後響應錯誤

終結點​​:Product_Packages正在刪除連接,Product_Place_Orders返回無效身份驗證。硬件和VirtualGuests正在接受憑據並返回我期望的信息。

或者:

  • 證書無效
  • 連接重置由對等

我,但是,能夠使用相同的憑據,看看有什麼機器和VLAN所在的帳戶。

考慮到這一點,捲曲工作,我仍然工作的另一個客戶端,但SoftLayer python客戶端在一夜之間停止工作。

API更改Auth機制昨晚改變了嗎?

import SoftLayer 

client = SoftLayer.create_client_from_env() # or 
client = SoftLayer.create_client_from_env(endpoint_url="https://api.softlayer.com/rest/v3/") 
location_groups = client.call('Location_Group_Pricing', 'getAllObjects') 

輸出:

Unexpected error: <class 'SoftLayer.exceptions.TransportError'> 
Traceback (most recent call last): 
    File "list_product_options.py", line 28, in <module> 
location_groups = client.call('Location_Group_Pricing', 'getAllObjects') 
    File "/Users/tony/alchemy/ibm-krobots/sl-tools/slcli/lib/python2.7/site-packages/SoftLayer/API.py", line 263, in call 
return self.transport(request) 
    File "/Users/tony/alchemy/ibm-krobots/sl-tools/slcli/lib/python2.7/site-packages/SoftLayer/transports.py", line 199, in __call__ 
raise exceptions.TransportError(0, str(ex)) 
SoftLayer.exceptions.TransportError: TransportError(0): ('Connection aborted.', error(54, 'Connection reset by peer')) 

捕捉異常顯示以下內容:

Unexpected error: <class 'SoftLayer.exceptions.TransportError'> 

爲同一端點的工作捲曲:

curl https://<username>:<api_key>@api.softlayer.com/rest/v3/SoftLayer_Location_Group_Pricing/getAllObjects.json 

也驗證了Golang客戶工作。

https://github.com/softlayer/softlayer-go

回答

-1

我們沒有關於該問題的任何報告,我能夠使用SoftLayer_Product_Order服務,你能提供你的要求(S)?尋求進一步的幫助

  • 你多久會遇到這個問題?
  • 你之前有過這些要求嗎?
+0

昨天晚上我發出這個確切的命令,它工作,今天早上我打了點命令更多的機器,它今天不工作。 問題發生在昨晚和今天早上的某個時間 – verdverm

+0

請問您可以附上您的請求嗎? –

+0

它是通過python製作的,不是真的 – verdverm

1

只是要指出,我遇到了同樣的問題,我相信還有別人的帖子也提到了同樣的傳輸/連接強制關閉問題。

昨晚工作,今天不工作。我正在更改我的API密鑰和user_name,以查看它是否得到解決。注意我也有多個SL賬戶。我正在交換主要帳戶API憑據以查看會發生什麼。

以下是錯誤

Unable to read data from the transport connection: An existing connection was fo rcibly closed by the remote host. 
System.Net.WebException: The underlying connection was closed: An unexpected err or occurred on a send. ---> 
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the 
remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host 
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
    --- End of inner exception stack trace --- 
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
    at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) 
    at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) 
    at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) 
    at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) 
    at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) 
    at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) 
    at System.Net.ConnectStream.WriteHeaders(Boolean async) 
    --- End of inner exception stack trace --- 
    at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequestrequest) 
    at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) 
    at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 
    at SoftlayerAPIV2.Softlayer.Account.SoftLayer_AccountService.getAdcLoadBalancers 
+0

您是否能夠通過捲曲或其他方式成功撥打電話? 我有 – verdverm

+0

沒有成功。我通過.net/c#使用SOAP。我正在進行VPN和更新我的wsdl,重新編譯以查看是否修復了任何內容。 –

+0

我認爲它與此有關:https://github.com/softlayer/softlayer-python/blob/master/SoftLayer/API.py#L252 – verdverm

0

與SoftLayer的支持交談後,有一個服務問題現已得到解決。

未來的緩解:對於舊客戶端和相關係統 更廣泛的測試將實施到我們的變更管理準則,以防止今後發生此類問題。

(我喜歡的那部分:)

0

這是SoftLayer的側面的問題,請重試它現在應該是固定的。

關注

+0

我仍然看到問題,我現在可以授權,但無法訂購機器。它今天沒有找到有效的VLAN。 – verdverm

+0

是錯誤信息一樣嗎? –

+0

不,它說「VLAN未找到,也許是錯誤的SL帳戶?」 我已驗證我正在與正確的帳戶通話。 – verdverm