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

Delete Resource Group fails with updatePollingState error #2645

Closed
weinong opened this issue Sep 8, 2018 · 1 comment
Closed

Delete Resource Group fails with updatePollingState error #2645

weinong opened this issue Sep 8, 2018 · 1 comment
Assignees

Comments

@weinong
Copy link

weinong commented Sep 8, 2018

Bug Report

  • import path of package in question, e.g. .../services/compute/mgmt/2018-06-01/compute
    services/resources/mgmt/2018-05-01/resources though, its more like a bug in github.com/Azure/go-autorest/autorest/azure/async.go
  • SDK version e.g. master, latest, 18.1.0
    • Specify the exact commit if possible; one way to get this is the REVISION
      column output by dep status "github.com/Azure/azure-sdk-for-go.
$ dep status "github.com/Azure/azure-sdk-for-go"
PROJECT                            CONSTRAINT  VERSION   REVISION  LATEST    PKGS USED
github.com/Azure/azure-sdk-for-go  v20.1.0     v20.1.0   2935c02   v20.1.0   2
github.com/Azure/go-autorest       ^10.15.3    v10.15.3  a35eae3   v10.15.3  8
github.com/dgrijalva/jwt-go        v3.2.0      v3.2.0    06ea103   v3.2.0    1
  • output of go version
$ go version
go version go1.10.4 windows/amd64
  • What happened?
    In some scenario ARM would not follow the typical Async behavior, e.g. returning operation status indicating the state. Instead, it returns ServiceError directly. When this happens, the SDK failed with pollingTrackerBase#updatePollingState: the response from the async operation has an invalid status code: StatusCode=0. This is extremely undesired as detail is lost.
  • What did you expect or want to happen?
    At least the response needs to be returned in the error object.
  • How can we reproduce it?
    I captured the response from ARM. You can repro from https://github.com/weinong/azure-sdk-for-go-bug
  • Anything we should know about your environment.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants