Title: order_modified_volume does not work · Issue #2127 · softlayer/softlayer-python · GitHub
Open Graph Title: order_modified_volume does not work · Issue #2127 · softlayer/softlayer-python
X Title: order_modified_volume does not work · Issue #2127 · softlayer/softlayer-python
Description: 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....
Open Graph Description: 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.readthed...
X Description: 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.readthed...
Opengraph URL: https://github.com/softlayer/softlayer-python/issues/2127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"order_modified_volume does not work","articleBody":"\u003e Reminder: No username or APIkeys should be added to these issues, as they are public.\r\n\r\n\r\n**Describe the bug**\r\nI hit a weird issue when using this Softalyer API\r\n[https://softlayer-api-python-client.readthedocs.io/en/stable/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.manage[…]_modified_volume](https://softlayer-api-python-client.readthedocs.io/en/stable/api/managers/SoftLayer.managers.FileStorageManager/#SoftLayer.managers.FileStorageManager.order_modified_volume)\r\nWhen I use it in Dallas(us-south), I can get it work properly.\r\nBut when I use it in Paris (eu-fr2), I got this error\r\n```\r\n\u003e\u003e\u003efsmgr = SoftLayer.managers.file.FileStorageManager(sl_client)\r\n\u003e\u003e\u003efsmgr.order_modified_volume(590925122, 2100)\r\nTraceback (most recent call last):\r\n File \"/usr/local/lib/python3.9/site-packages/SoftLayer/transports.py\", line 226, in __call__\r\n result = xmlrpc.client.loads(resp.content)[0][0]\r\n File \"/usr/local/lib/python3.9/xmlrpc/client.py\", line 1025, in loads\r\n return u.close(), u.getmethodname()\r\n File \"/usr/local/lib/python3.9/xmlrpc/client.py\", line 662, in close\r\n raise Fault(**self._stack[0])\r\nxmlrpc.client.Fault: \u003cFault SoftLayer_Exception_Order_InvalidLocation: 'The location provided for this order is invalid.'\u003e\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/usr/local/lib/python3.9/site-packages/SoftLayer/managers/storage.py\", line 273, in order_modified_volume\r\n return self.client.call('Product_Order', 'placeOrder', order)\r\n File \"/usr/local/lib/python3.9/site-packages/SoftLayer/API.py\", line 301, in call\r\n return self.transport(request)\r\n File \"/usr/local/lib/python3.9/site-packages/SoftLayer/transports.py\", line 248, in __call__\r\n raise _ex(ex.faultCode, ex.faultString) from ex\r\nSoftLayer.exceptions.SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception_Order_InvalidLocation): The location provided for this order is invalid.\r\nI don't think the API requires any location related parameters. So not sure how The location provided for this order is invalid comes.\r\n```\r\n**Expected behavior**\r\nThe API succeeds and return a order result.\r\n\r\n**Screenshots**\r\nN/A\r\n\r\n**Version**\r\nInclude the output of `slcli --version`\r\nThis is from using python package \r\nSoftLayer 5.9.6 \r\n\r\n","author":{"url":"https://github.com/nickliuibm","@type":"Person","name":"nickliuibm"},"datePublished":"2024-02-27T19:52:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2127/softlayer-python/issues/2127"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b042f3b3-b9cc-9c3c-5874-7dbedb8fdcc6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6CA:2D4000:1A92266:2506B8C:696A51BB |
| html-safe-nonce | ad73ae79d055915ecf0d72a7e36806df8b657d8f91430e270d9211dd98c10a11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkNBOjJENDAwMDoxQTkyMjY2OjI1MDZCOEM6Njk2QTUxQkIiLCJ2aXNpdG9yX2lkIjoiMzgzMDA3OTQ1MjI3MTI5Mjc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab720fbc6077e3dd26ea34bed44975f503474b8c42496d2abfe454c9be028814 |
| hovercard-subject-tag | issue:2157491214 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/softlayer/softlayer-python/2127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8df984a139ab7be94cb3ec77dad25834a67fc70282205dbe17387ce0391d6650/softlayer/softlayer-python/issues/2127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8df984a139ab7be94cb3ec77dad25834a67fc70282205dbe17387ce0391d6650/softlayer/softlayer-python/issues/2127 |
| og:image:alt | 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.readthed... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nickliuibm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| turbo-cache-control | no-preview |
| go-import | github.com/softlayer/softlayer-python git https://github.com/softlayer/softlayer-python.git |
| octolytics-dimension-user_id | 49550 |
| octolytics-dimension-user_login | softlayer |
| octolytics-dimension-repository_id | 622291 |
| octolytics-dimension-repository_nwo | softlayer/softlayer-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 622291 |
| octolytics-dimension-repository_network_root_nwo | softlayer/softlayer-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width