apache / apache/cloudstack-go

Error to decode RegisterUserKeys

未关闭
#96 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
39
派生
47
PR 合并指标
30 天内没有已合并 PR

描述

![image](https://github.com/user-attachments/assets/1da4d322-8f43-4c16-acd1-4144ab7e0e50)
Hi, i have a error when decode RegisterUserKeys, because response is a string not a map
{"status-code":500,"error-code":"CloudstackApiError","details":"json: cannot unmarshal string into Go value of type cloudstack.RegisterUserKeysResponse"}
![image](https://github.com/user-attachments/assets/b249fe2d-ff63-46e5-bada-d1dfe8b8c4e6)

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先跟踪 RegisterUserKeys 以及 cloudstack.RegisterUserKeysResponse 的解码过程。重现报告的 500 错误,并将字符串响应与预期的 map 形式响应进行比较;当响应不再因报告的 unmarshal 错误而失败时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
api
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。