Describe the bug / 问题描述
描述
- 当前版本会根据 account.Region 改写上游 Kiro/Q 端点。
- 但有些账号场景下,account.Region 和实际 profileArn 所属区域并不一致。
- 例如我的账号:
- account.Region = ap-southeast-1
- profileArn = arn:aws:codewhisperer:us-east-1:...:profile/...
- 此时程序会把请求发到 q.ap-southeast-1.amazonaws.com,导致请求失败。
现象
- 账号刷新失败
- 模型列表刷新失败
- 正常对话请求失败
- 日志报错类似:
- lookup q.ap-southeast-1.amazonaws.com: no such host
预期
- 当 profileArn 存在时,应优先使用 profileArn 中的 region 决定上游数据面端点。
- 上述场景里应继续访问 us-east-1 相关端点,而不是 ap-southeast-1。
建议
- region 解析顺序建议改为:
- 优先取 profileArn 中的 region
- 其次取 account.Region
- 最后回退到 us-east-1
补充
Regression / 回归问题
Steps to reproduce / 复现步骤
No response
Relevant log output / 相关日志
Impact / 影响程度
Annoyance – Minor issue, no significant impact. / 轻微 – 轻度问题,无明显影响。
Environment / 环境信息
No response
Additional Context / 补充信息
No response
Describe the bug / 问题描述
描述
现象
预期
建议
补充
Regression / 回归问题
Steps to reproduce / 复现步骤
No response
Relevant log output / 相关日志
Impact / 影响程度
Annoyance – Minor issue, no significant impact. / 轻微 – 轻度问题,无明显影响。
Environment / 环境信息
No response
Additional Context / 补充信息
No response