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

Container Service SDK doesn't return an error message for 400 errors #2085

Closed
tombuildsstuff opened this issue Jun 20, 2018 · 6 comments
Closed
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.

Comments

@tombuildsstuff
Copy link
Contributor

👋

We've noticed that the Container Service SDK doesn't return a complete error message when an err object is returned (here's the relevant issue on our side, but we've seen this for other issues too](hashicorp/terraform-provider-azurerm#1416)):

containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""

The full error message is available in the HTTP Response - such that this just isn't being parsed out correctly; as such would it be possible to fix the SDK so that this error is raised?

Thanks!

@jhendrixMSFT
Copy link
Member

@tombuildsstuff I don't suppose you have the response body handy, or even better a simple repro? I've been having a hard time putting a repro together. :(

@tombuildsstuff
Copy link
Contributor Author

@jhendrixMSFT not to hand, in this case the error came from using an incorrect machine size - however I’ll try and put one together in the morning :)

@tombuildsstuff
Copy link
Contributor Author

@jhendrixMSFT
Copy link
Member

Thanks a lot, will dig into this today.

@jhendrixMSFT
Copy link
Member

The good news is this is fixed in recent builds. I'll figure out which commit fixed it.

@jhendrixMSFT
Copy link
Member

This was fixed in go-autorest v10.9.0 in the future state machine rewrite. If possible I would recommend moving to v17 of the SDK in conjunction with v10.9 of go-autorest as the futures rewrite included some changes to our code generator which debuted in v17 of the SDK (this didn't introduce breaking changes for consumers, just the internals of some methods).

@RickWinter RickWinter added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

3 participants