LoginSignup
2
0

More than 5 years have passed since last update.

Cloud9でheroku createコマンドが400エラーになる場合

Posted at

Cloud9heroku create コマンドを実行したら、400エラーになった。

iwamot:~/workspace $ heroku create アプリケーション名
Enter your Heroku credentials.
Email: メールアドレス
Password (typing will be hidden): 
 ▸    HTTP Error: https://api.heroku.com/login 400 Bad Request
 ▸    Invalid response from API.
 ▸    HTTP 400
 ▸    {メールアドレス パスワード}
 ▸    
 ▸    Are you behind a proxy?
 ▸    https://devcenter.heroku.com/articles/using-the-cli#using-an-http-proxy

これは、heroku-cliのバージョンが古いのが原因だった。

iwamot:~/workspace $ heroku version
heroku-toolbelt/3.43.13 (x86_64-linux) ruby/2.3.0
heroku-cli/5.4.8-eee5ec9 (linux-amd64) go1.7.1
You have no installed plugins.

Herokuのドキュメントに書かれているコマンドで、アップデートしてみた。少し時間がかかった。

iwamot:~/workspace $ wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
(中略)
heroku cli installed to /usr/bin/heroku
+ heroku version
heroku-cli/6.13.19 (linux-x64) node-v8.3.0

これで、heroku create が実行できるようになった。

iwamot:~/workspace $ heroku create アプリケーション名
Creating ⬢ アプリケーション名... !
 ▸    Invalid credentials provided.
Enter your Heroku credentials:
Email: メールアドレス
Password: ***********
Creating ⬢ アプリケーション名... done
https://アプリケーション名.herokuapp.com/ | https://git.heroku.com/アプリケーション名.git
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0