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

storage.ManagementPoliciesClient.CreateOrUpdate Failed with RequestIsNotValidJson #5190

Closed
stuartleeks opened this issue Jul 3, 2019 · 6 comments
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library. Previous Versions Work related to track1 and track1.5 SDKs Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@stuartleeks
Copy link

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

@stuartleeks
Copy link
Author

It looks like this is an issue with the swagger for storage: Azure/azure-rest-api-specs#6549

@maggiepint maggiepint added Mgmt This issue is related to a management-plane library. Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) and removed triage labels Jul 3, 2019
@stuartleeks
Copy link
Author

Found another issue that also needs addressing for Management Policies

@zhusijia26 zhusijia26 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 11, 2019
@stuartleeks
Copy link
Author

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!

@ArcturusZhang
Copy link
Member

ArcturusZhang commented Aug 12, 2019

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

@amishra-dev
Copy link

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

@stuartleeks
Copy link
Author

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!

@RickWinter RickWinter added the Previous Versions Work related to track1 and track1.5 SDKs label Oct 3, 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
bug This issue requires a change to an existing behavior in the product in order to be resolved. Mgmt This issue is related to a management-plane library. Previous Versions Work related to track1 and track1.5 SDKs Service Attention Workflow: This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

6 participants