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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header Issue with marketplaceordering / API Version 2021-01-01 #497

Closed
1 task done
mbfrahry opened this issue Jun 5, 2023 · 3 comments
Closed
1 task done

Header Issue with marketplaceordering / API Version 2021-01-01 #497

mbfrahry opened this issue Jun 5, 2023 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@mbfrahry
Copy link
Member

mbfrahry commented Jun 5, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Service Used

MarketPlaceOrdering

API Versions Used

2021-01-01

Description

MarketPlaceAgreementsCancel is failing because there isn't a header being added for content-length

Here is the request

:authority: management.azure.com
:method: POST
:path: some-path
:scheme: https
authorization: some-auth-token
x-ms-correlation-request-id: 71dc3a9e-3a0c-1e88-aaeb-240a69f05c74
content-type: application/json
user-agent: HashiCorp/go-azure-sdk (Go-http-Client/1.1 agreements/2021-01-01) HashiCorp Terraform/ (+https://www.terraform.io) Terraform Plugin SDK/2.10.1 terraform-provider-azurerm/acc pid-222c6c49-1b0a-5959-a213-6608f9eb8820
accept-encoding: gzip

And the error being returned

<BODY><h2>Length Required</h2>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
</BODY></HTML>

Adding content-length: 0 to the request headers fixes this issue.

References

No response

@mbfrahry mbfrahry changed the title Issue with marketplaceordering / API Version 2021-01-01 Header Issue with marketplaceordering / API Version 2021-01-01 Jun 5, 2023
@tombuildsstuff tombuildsstuff added the duplicate This issue or pull request already exists label Jun 6, 2023
@tombuildsstuff
Copy link
Member

Duplicate of #448 - which'll be fixed by hashicorp/go-retryablehttp#194

@tombuildsstuff
Copy link
Member

I believe this should be fixed now, @mbfrahry mind taking another look at this one?

@mbfrahry
Copy link
Member Author

mbfrahry commented Jul 5, 2023

It is! Thanks @tombuildsstuff!

@mbfrahry mbfrahry closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants