softlayer-python
softlayer-python copied to clipboard
order_modified_volume does not work
Reminder: No username or APIkeys should be added to these issues, as they are public.
Describe the bug I hit a weird issue when using this Softalyer API https://softlayer-api-python-client.readthedocs.io/en/stable/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.manage[…]_modified_volume When I use it in Dallas(us-south), I can get it work properly. But when I use it in Paris (eu-fr2), I got this error
>>>fsmgr = SoftLayer.managers.file.FileStorageManager(sl_client)
>>>fsmgr.order_modified_volume(590925122, 2100)
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/SoftLayer/transports.py", line 226, in __call__
result = xmlrpc.client.loads(resp.content)[0][0]
File "/usr/local/lib/python3.9/xmlrpc/client.py", line 1025, in loads
return u.close(), u.getmethodname()
File "/usr/local/lib/python3.9/xmlrpc/client.py", line 662, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault SoftLayer_Exception_Order_InvalidLocation: 'The location provided for this order is invalid.'>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/site-packages/SoftLayer/managers/storage.py", line 273, in order_modified_volume
return self.client.call('Product_Order', 'placeOrder', order)
File "/usr/local/lib/python3.9/site-packages/SoftLayer/API.py", line 301, in call
return self.transport(request)
File "/usr/local/lib/python3.9/site-packages/SoftLayer/transports.py", line 248, in __call__
raise _ex(ex.faultCode, ex.faultString) from ex
SoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Order_InvalidLocation): The location provided for this order is invalid.
I don't think the API requires any location related parameters. So not sure how The location provided for this order is invalid comes.
Expected behavior The API succeeds and return a order result.
Screenshots N/A
Version
Include the output of slcli --version
This is from using python package
SoftLayer 5.9.6