Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order_modified_volume does not work #2127

Open
nickliuibm opened this issue Feb 27, 2024 · 0 comments
Open

order_modified_volume does not work #2127

nickliuibm opened this issue Feb 27, 2024 · 0 comments
Assignees
Labels

Comments

@nickliuibm
Copy link

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

@nickliuibm nickliuibm added the Bug label Feb 27, 2024
@allmightyspiff allmightyspiff self-assigned this Feb 27, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in Q1 2024 Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants