我在連接到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
昨天晚上我發出這個確切的命令,它工作,今天早上我打了點命令更多的機器,它今天不工作。 問題發生在昨晚和今天早上的某個時間 – verdverm
請問您可以附上您的請求嗎? –
它是通過python製作的,不是真的 – verdverm