Comments (12)
- With command
aliyuncli cs DescribeClusters
, I got and error'list' object has no attribute 'get'
.
Then I tried to remove this line https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-core/aliyunsdkcore/client.py#L261, it worked. - But when I tried
aliyuncli cs CreateCluster
, I got an error{ "Message": "{\"code\":\"ErrorJsonDecode\",\"message\":\"code=400, message=Request body can't be empty\",\"requestId\":\"B53E7ED8-55F8-4A29-B2D1-D7A7F3B50F3B\",\"status\":400}", "Code": "SDK.UnknownServerError" }
How to parse params to the request body? Thanks.
A note that I am focusing to create/delete/describe Kuberetes clusters.
from aliyun-openapi-python-sdk.
Did you use Aliyun CLI? Try the go version CLI please. https://github.com/aliyun/aliyun-cli
from aliyun-openapi-python-sdk.
Yes, I tried use aliyun cli with DescribeClusters
but still have the same error above 'list' object has no attribute 'get'
. With other methods still work well.
from aliyun-openapi-python-sdk.
/assign @jxyowen
from aliyun-openapi-python-sdk.
Pelase visit https://www.alibabacloud.com/help/doc-detail/71195.htm?spm=a2c63.p38356.b99.266.68273bcdv95bV1
from aliyun-openapi-python-sdk.
@jxyowen Could you please re-check issue content? Seem @minhtran-asnet followed the link you shared above and got an error.
from aliyun-openapi-python-sdk.
@jxyowen aliyun-python-sdk-cs
have support for region ap-southeast-5
?
from aliyun-openapi-python-sdk.
@Qingtang-SDK Could you help me?
from aliyun-openapi-python-sdk.
CS sdk is not supported well, because CS have restful api. We recommend to use CommonRequest.
Please visit https://www.alibabacloud.com/help/doc-detail/61476.htm?spm=a2c63.p38356.b99.19.c88c874bVnwJzW
from aliyun-openapi-python-sdk.
@jxyowen I tried with code below
access_key_id = 'xxx'
access_key_secret = 'xxx'
region_id = 'xxx'
client = AcsClient(access_key_id, access_key_secret , region_id )
request = CommonRequest()
request.set_domain('cs.aliyuncs.com')
request.set_version('2015-12-15')
request.set_uri_pattern('/clusters')
response = client.do_action_with_exception(request)
print('---> response', response)
I don't have any idea about error. Pls help me about this case, thanks.
from aliyun-openapi-python-sdk.
Please update your python aliyunsdkcore to 2.8.8 for python3, and 2.8.4 for python2.
Visit https://pypi.org/search/?q=+aliyun+python+sdk+core+v3
from aliyun-openapi-python-sdk.
Problem is that client.py wants to read RequestId from the body, but there is no request id there. RequestId for cs responses is in the HTTP header: x-acs-request-id
. client.py should be able to handle this.
Workaround is to use client.do_action()
, but that is deprecated.
Why was the issue closed?
from aliyun-openapi-python-sdk.
Related Issues (20)
- pip install aliyun-python-sdk-core-v3==2.11.4 error HOT 1
- SDK Support for DescribeAgentInstallStatus() function
- Could you please bump `jmespath` to some newer version? HOT 1
- aliyun-sdk-core doesn't work with crpythongraphy
- aliyun-python-sdk-core apsara protocol type bug HOT 1
- 我是Python3 安装 缺少 [v20180510] HOT 5
- 云监控 DescribeMetricListRequest 接口超时 HOT 1
- asfdf
- code example运行出错
- Project dependencies. HOT 2
- InvalidNetworkType when executing codes generated from "Preview -> View Open API" HOT 1
- CVE for included urllib3 HOT 3
- Can't override default region for DescribeDBInstancesRequest
- Vendored six package is incompatible with Python 3.12.
- Update aliyun-python-sdk-core.vendored.requests: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 3
- Concerns about new get_uuid() implementation in aliyun-python-sdk-core 2.14.0 HOT 3
- aliyun-python-sdk-core can not install HOT 2
- python3.12 support HOT 6
- Protecode security issue on aliyun-python-sdk-core dependency HOT 1
- python3.12环境,aliyun-python-sdk-core(2.14.0)报错:ModuleNotFoundError,请求支持!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-openapi-python-sdk.