apache / apache/cloudstack-go

Error to decode RegisterUserKeys

Open
#96 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
39
Forks
47
PR merge metrics
No merged PRs in 30d

Description

![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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing RegisterUserKeys and the decoding of cloudstack.RegisterUserKeysResponse. Reproduce the reported 500 error and compare the string response with the expected map-shaped response; done means the response no longer fails with the reported unmarshal error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.