Summary
When deploying using the Heroku plugin, a 400 error is received with the following message:
com.heroku.api.exception.RequestFailedException: Failed to create app statuscode:400 responseBody:{"id":"missing_version","error":"Please specify a version along with Heroku's API MIME type. For example, `Accept: application/vnd.heroku+json; version=3`.\n"}
Steps to Reproduce
- Create a Heroku deployment task
- Run your deployment
Expected Results
App is successfully deployed
Actual Results
The below exception is thrown in the build log:
error 27-Sep-2017 14:00:03 Unknown error creating app '<app-name>'Failed to create app statuscode:400 responseBody:{"id":"missing_version","error":"Please specify a version along with Heroku's API MIME type. For example, `Accept: application/vnd.heroku+json; version=3`.\n"} error 27-Sep-2017 14:00:03 Error occurred while running Task '<task name>' of type com.heroku.bamboo.heroku-bamboo-plugin:com.heroku.bamboo.WarDeploymentTask. error 27-Sep-2017 14:00:03 com.heroku.api.exception.RequestFailedException: Failed to create app statuscode:400 responseBody:{"id":"missing_version","error":"Please specify a version along with Heroku's API MIME type. For example, `Accept: application/vnd.heroku+json; version=3`.\n"} error 27-Sep-2017 14:00:03 at com.heroku.api.request.app.AppCreate.getResponse(AppCreate.java:66) error 27-Sep-2017 14:00:03 at com.heroku.api.request.app.AppCreate.getResponse(AppCreate.java:20) ...
Workaround
If you are able to use the Heroku CLI, you could work around this issue adding a script task with the following inline contents:
export HEROKU_API_KEY=<your heroku api key> heroku plugins:install heroku-cli-deploy heroku war:deploy <path to your war> --app <your app name>
Notes from Atlassian
We reached out to Heroku for this issue, and they advised us of the API deprecation as well:
"missing_version" errors on Deploy · Issue #10 · heroku/heroku-bamboo-plugin
- links to
- mentioned in
-
Page Loading...