aliyun / aliyun/aliyun-openapi-python-sdk
ecs CreateInstanceRequest 不能成功设置 tag
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1k
- Forks
- 578
- PR merge metrics
- No merged PRs in 30d
Description
- Python Version: 3.8
- aliyunsdkcore Version: 2.13.18
- API: ecs CreateInstanceRequest
之前可以正常工作的代码在更新 ecs SDK 后创建 ECS 时报错:
HTTP Status: 400 Error:InvalidTagValue.Malformed The specified Tag.n.Value is not valid.
原因应该是因为这个 commit 把 Value 改为了小写的 value,Key 字段依然保持了大写,这是笔误了吗?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked commit and the ECS CreateInstanceRequest implementation, then inspect how tag Key and Value parameters are serialized. Reproduce the request using Python 3.8 and the reported SDK version, and compare the generated parameter names with the API requirements. Done means tag creation succeeds without InvalidTagValue.Malformed and a regression test covers the corrected casing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100