-
Notifications
You must be signed in to change notification settings - Fork 850
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
Comments
@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. :( |
@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 :) |
@jhendrixMSFT I've added a repro in this repo: https://github.com/tombuildsstuff/azure-sdk-for-go-bug-2085 |
Thanks a lot, will dig into this today. |
The good news is this is fixed in recent builds. I'll figure out which commit fixed it. |
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). |
👋
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)):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!
The text was updated successfully, but these errors were encountered: