传输连接重置

时间:2016-12-02 20:31:39

标签: ibm-cloud-infrastructure

我收到此错误

Traceback (most recent call last):
  File "/Users/ryanpa/Documents/Softlayer Scripts/getVlans.py", line 8, in <module>
    all_vlans = client['Account'].getNetworkVlans(mask='type, id, vlanNumber,name, primaryRouter.hostname, primaryRouter.datacenter, networkSpace')
  File "/Library/Python/2.7/site-packages/SoftLayer/API.py", line 392, in call_handler
    return self(name, *args, **kwargs)
  File "/Library/Python/2.7/site-packages/SoftLayer/API.py", line 360, in call
    return self.client.call(self.name, name, *args, **kwargs)
  File "/Library/Python/2.7/site-packages/SoftLayer/API.py", line 263, in call
    return self.transport(request)
  File "/Library/Python/2.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'))

运行简单的python脚本时。我已将相同的文件发送给我的队友以使用我的用户名和API密钥执行,这对他有用,但不适合我。我是在家里运行的,我已经在2个不同的网络上尝试过使用VPN。

all_vlans = client['Account'].getNetworkVlans(mask='type, id, vlanNumber,name, primaryRouter.hostname, primaryRouter.datacenter, networkSpace')

pp(all_vlans)

是我想要的。只是简单的测试来获得所有的vlans

2 个答案:

答案 0 :(得分:0)

如果您在其他环境中使用您的凭据进行测试并且工作正常,则问题出在您身边(您的环境),请在干净的环境中进行尝试。

答案 1 :(得分:0)

所以,现在我们至少有4个人有同样的问题。仅供参考,这篇文章是相同的,我和另外一个人。 SoftLayer (multiple) client responding with errors after API upgrade