Azure-sdk-for-go: storage.ManagementPoliciesClient.CreateOrUpdate Failed with RequestIsNotValidJson

Created on 3 Jul 2019  路  6Comments  路  Source: Azure/azure-sdk-for-go

Bug Report

  • import path of package in question, e.g. .../services/storage/mgmt/2019-04-01/storage
  • SDK version 31.0.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.

  • output of go version: go version go1.12.6 linux/amd64

Attempting to create a ManagementPolicyRule results in an error:

Error creating Azure Storage Management Policy : storage.ManagementPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="RequestIsNotValidJson" Message="The request cannot be interpreted as valid Json: {}."

Repro code here

Mgmt Service Attention Storage bug

Most helpful comment

It looks like this is an issue with the swagger for storage: https://github.com/Azure/azure-rest-api-specs/issues/6549

All 6 comments

It looks like this is an issue with the swagger for storage: https://github.com/Azure/azure-rest-api-specs/issues/6549

Found another issue that also needs addressing for Management Policies

Bump - the swagger has been updated (see here) - what needs to happen to create a new release of the SDK from the updated swagger?

Thanks!

Hi @stuartleeks , this issue should be resolved in version 32.0.0. Feel free to have a test

Kindly reactivate if you find the issue is not resolved in v32.0.0

Apologies - I was juggling this in tandem with some other work. I appreciate your help getting this fixed and release - the Terraform provider work that this unblocked has now been released :-) Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tirke picture Tirke  路  3Comments

drosseau picture drosseau  路  4Comments

sozercan picture sozercan  路  3Comments

tombuildsstuff picture tombuildsstuff  路  4Comments

StrongMonkey picture StrongMonkey  路  4Comments