Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku CLI throws an error whenever I try to do anything: "Please specify a version along with Heroku's API MIME type"

As of this morning, without having change anything in my Heroku CLI setup, I received the following error when I tried to run: heroku logs -t -app <app_name>

! Please specify a version along with Heroku's API MIME type. For example, Accept: application/vnd.heroku+json; version=3.

I have since tried updating both heroku and heroku-toolbelt via brew upgrade heroku and brew upgrade heroku-toolbelt, but this did not solve the issue.

I get this error essentially whenever I try to do anything with heroku CLI, including heroku logs, heroku apps, heroku login, and heroku auth:login.

I am running MacOS, and the error posted is the only information that I am getting back from Heroku.

This discussion here: How can I specify heroku's MIME type? pertains to upgrading Heroku in Ubuntu and does not solve my issue.

like image 681
oktober Avatar asked Jul 24 '17 16:07

oktober


2 Answers

I had the same problem -- but installing the new Toolbelt did not work at first. There was one other step I needed to do.

from: https://devcenter.heroku.com/articles/heroku-cli

It has instructions for each platform on installing the new cli -- and says you need to run: which heroku in order to verify the proper version is running. In my case I also needed to do a gem uninstall heroku in order to get everything working, as it was running the gem binary instead of the newly installed heroku-cli binary.

like image 114
Kem Mason Avatar answered Oct 16 '22 19:10

Kem Mason


If you were using heroko Plugin for intellij

I tried alot to make it work !

From here official response

@emzeidan thanks for the report. This plugin is deprecated, and uses an old version of the Heroku API that has been shut down. Please recommend to your users that they use one of the alternative deployment mechanisms described in our DevCenter article on WAR deployment. If you can remove from the plugin from any Bamboo marketplace (or similar thing) that would be helpful too. Thanks.

This was on Sept-2017

like image 26
shareef Avatar answered Oct 16 '22 19:10

shareef