-
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
arm/storage - CheckNameAvailability failed #210
Comments
@bingosummer Does this recur for you? I ran the tests this morning and worked as expected. The code does follow the API documentation (see https://msdn.microsoft.com/en-us/library/azure/mt163642.aspx). Unless there was some other error (e.g., network glitch, service sending a malformed response), it should be correct. If this recurs, could you, please try to capture the JSON output? Thank you. Feel free to re-open then. |
@bingosummer I should have left this open to better track. Re-opening. |
It recurs. I am new to Golang. I just printed resp and result just like the following, and got a output. Not sure if it is what you want.
output:
|
@brendandixon
Then it failed. |
@bingosummer Ok. Let's get some more information. In the examples/check.go file do the following:
This will save the JSON returned from the Stroage call. Ok? |
@brendandixon I appreciate your help.
The value of "nameAvialable" is a string, which should be a bool. Is it the root cause of my failure? |
I change the type of IMO, the behavior of ARM REST API should be the same. I'm wondering why it only happens in my test environment. |
@bingosummer turns out the Swagger API spec is misspecified hence the generated code is wrong: Azure/azure-rest-api-specs#19 it's bool vs string issue as you found out. |
@ahmetalpbalkan Thanks for your confirmation. |
@ahmetalpbalkan @bingosummer Something larger is amiss here. The service had been returning a boolean (despite the documentation). In fact, if I run this and print the JSON, I get a boolean:
Let me follow up. |
@brendandixon let's start an internal thread with the product team. I can hardly imagine it's returning string for some users even though it's the same API version. I'm guessing this has been a string at some point in the past, that's what the docs are hinting partially. |
@ahmetalpbalkan I already have. I agree the behavior is odd. However, it is occurring. I reliably get a boolean, not a string, and have received a boolean for some time. Frankly, I do not trust the documentation to this level of detail. |
@bingosummer The service team would like to debug this further. To do so they need your subscription ID along with the full Request / Response. I can give you inspectors that will capture the Request / Response. To protect your subscription, perhaps you could send it to me directly? brendand at microsoft dot com. Ok? |
@bingosummer My understanding is that the Service team resolved the issue for you? Is that correct? If so, let us know. Thanks. |
@bingosummer Try again using #221 |
Yes. The issue is resolved. Thanks. |
I got the failue when I ran "go test" in arm/examples. But it worked a few days ago.
It seemed that the server responded with a wrong value.
https://github.com/Azure/azure-sdk-for-go/blob/master/arm/storage/storageaccounts.go#L71
The text was updated successfully, but these errors were encountered: