aliyun / aliyun/aliyun-openapi-python-sdk

ecs CreateInstanceRequest 不能成功设置 tag

Open
#462 0 comments 0 reactions 0 assignees View on GitHub

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 改为了小写的 valueKey 字段依然保持了大写,这是笔误了吗?

https://github.com/aliyun/aliyun-openapi-python-sdk/commit/e8ada269d64496950712e4df9aee66be30bdf587#diff-3fd5cb739e2b1b11d7b2cb6b753099b50d7f1202ff3c39481e9f131e6d9998dfR117

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.