# Cannot run Terraform provider tests: unexpected Content-Type: "application/vnd+hashicorp.releases-api.v0+json"

**URL:** <https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643>\
**Category:** Plugin Development\
**Created:** [May 18, 2022, 8:44am UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643 "2022-05-18T08:44:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronanwatkins](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ronanwatkins/32/22958_2.png) [@ronanwatkins](https://discuss.hashicorp.com/u/ronanwatkins)\
**Post date:** [May 18, 2022, 8:44am UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643/1 "2022-05-18T08:44:19Z")

</div>

Getting the above error when running tests in our github action. There is no issue when running locally.  
This appears to have started after the [Releases API](https://www.hashicorp.com/blog/announcing-the-hashicorp-releases-api) was announced.  
The repo is: [GitHub - MyPureCloud/terraform-provider-genesyscloud: Terraform Provider for Genesys Cloud resources](https://github.com/MyPureCloud/terraform-provider-genesyscloud)

---

<div class="post-metadata">

**Author:** ![rm-hull](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rm-hull/32/28197_2.png) [@rm-hull](https://discuss.hashicorp.com/u/rm-hull)\
**Post date:** [May 18, 2022, 1:38pm UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643/2 "2022-05-18T13:38:30Z")

</div>

Same is happening for me (on a different project). This was working yesterday.

Am using: [github.com/hashicorp/terraform-plugin-sdk/v2](http://github.com/hashicorp/terraform-plugin-sdk/v2) v2.10.0

---

<div class="post-metadata">

**Author:** ![apparentlymart](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/apparentlymart/32/702_2.png) [@apparentlymart](https://discuss.hashicorp.com/u/apparentlymart)\
**Post date:** [May 18, 2022, 8:35pm UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643/3 "2022-05-18T20:35:27Z")

</div>

Hello!

This error was fixed in version 2.16.0 of the SDK. You can upgrade to that version by running a command like this in your provider module:

```auto
go get github.com/hashicorp/terraform-plugin-sdk/v2@v2.16.0

```

Although I would recommend updating to the latest release (there should not be any breaking changes in the newer minor releases), the change in question was actually in a dependency and so if you want a more surgical fix you should be able to get a similar effect by directly updating that indirect dependency in your module:

```auto
go get github.com/hashicorp/hc-install@v0.3.2

```

Since your provider probably doesn’t directly depend on `hc-install`, you may not already have an entry for this in `go.mod`, but after running the above you should see a dependency there annotated with `// indirect` to show that it’s only an indirect dependency.

---

<div class="post-metadata">

**Author:** ![dwanek](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dwanek/32/21756_2.png) [@dwanek](https://discuss.hashicorp.com/u/dwanek)\
**Post date:** [May 19, 2022, 2:48pm UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643/4 "2022-05-19T14:48:31Z")

</div>

We’re also seeing a similar error with the `hashicorp/action-setup-waypoint@main` package. The exact error is:

> Error: Failed to fetch version metadata file Error: unsupported media type requested, only [application/vnd+hashicorp.releases-api.v0+json application/vnd+hashicorp.releases-api.v1+json] are available.

Any tips on how to proceed in this case?

---

<div class="post-metadata">

**Author:** ![bflad](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/bflad/32/922_2.png) [@bflad](https://discuss.hashicorp.com/u/bflad)\
**Post date:** [June 14, 2022, 2:08pm UTC](https://discuss.hashicorp.com/t/cannot-run-terraform-provider-tests-unexpected-content-type-application-vnd-hashicorp-releases-api-v0-json/39643/5 "2022-06-14T14:08:29Z")

</div>

Hi @dwanek 👋 I would recommend following [unsupported media type requested · Issue #284 · hashicorp/action-setup-waypoint · GitHub](https://github.com/hashicorp/action-setup-waypoint/issues/284) or seeing if there are any relevant discussions in the Waypoint section: [Waypoint - HashiCorp Discuss](https://discuss.hashicorp.com/c/waypoint/51)
