Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix offer list unmarshaling #3997

Open
remyleone opened this issue Jul 23, 2024 · 1 comment
Open

fix offer list unmarshaling #3997

remyleone opened this issue Jul 23, 2024 · 1 comment
Assignees
Labels
bug dedibox Dedibox issues, bugs and feature requests priority:highest Bugs filled by customers, security issues

Comments

@remyleone
Copy link
Member

remyleone commented Jul 23, 2024

$ scw dedibox offer list        
scaleway-sdk-go: could not parse application/json response body: json: cannot unmarshal array into Go struct field OfferServerInfo.offers.server_info.stock_by_datacenter of type map[string]dedibox.OfferServerInfoStock

This blocks getting offer in san for instance

@remyleone remyleone added bug dedibox Dedibox issues, bugs and feature requests labels Jul 23, 2024
@remyleone remyleone added the priority:highest Bugs filled by customers, security issues label Jul 23, 2024
@Laure-di
Copy link
Contributor

The issue is on the API side:

stock_by_datacenter
In one case, the API returns an empty array "stock_by_datacenter":[] instead of a map {}.
Offer ID: [21373]
Name: Core-2-L-Double

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dedibox Dedibox issues, bugs and feature requests priority:highest Bugs filled by customers, security issues
Projects
None yet
Development

No branches or pull requests

2 participants