Transport Connect Reset

孤街醉人 提交于 2019-12-25 04:04:05

问题


I'm getting this error

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'))

When running a simple python script. I've sent the same file to my teammate to execute with my username and API key and it works for him but not on my end. I'm running this from home and i've tried on 2 different networks along with being on VPN.

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

pp(all_vlans)

is all i'm trying to do. just simple test to get all vlans


回答1:


If you tested in other environment with your credentials and it works fine, the issue is from your side (your environment), try this in a clean environment.




回答2:


So, now we have at least 4 people having the same issue. FYI, this post is the same, me and one other person. SoftLayer (multiple) client responding with errors after API upgrade




回答3:


thi was a softlayer issue, please try again it should be fixed

Regards



来源:https://stackoverflow.com/questions/40940374/transport-connect-reset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!