如何指定heroku的MIME类型? [英] How can I specify heroku's MIME type?
本文介绍了如何指定heroku的MIME类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的Rails应用程序使用的heroku上使用postgresql数据库,但是 heroku pg
返回此错误消息:
I am trying to play with the postgresql db on heroku which is used by my rails app, but heroku pg
returns this error message:
! Please specify a version along with Heroku's API MIME type.
For example, `Accept: application/vnd.heroku+json; version=3`.
Heroku的API MIME类型是什么?如何指定正确的值?
What is Heroku's API MIME type? How can I specify the right value?
推荐答案
这是由于cloud9中使用的heroku工具带较旧的版本。使用以下命令更新heroku cli后,此错误消失了:
This was due to the old version of heroku toolbelt used in cloud9. This error was gone after updating heroku cli with:
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
在 https://community.c9.io/t/how-to-update-heroku-cli/12074/10 。
这篇关于如何指定heroku的MIME类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文