2016-12-02 82 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