问题
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