Intermittent heroku login failure 400 bad request

heroku

#1

I keep getting this error intermittently. It usually lasts less than a day, but has gone on for 3-4 days recently. No proxy involved. How do I (or C9) fix this?

$ heroku login
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


#2

This may be due to an intentional brownout by Heroku, so the solution is probably to update your Heroku CLI


#3

Thanks. It appears you are correct, since I was able to run the Debian/Ubuntu command line on https://devcenter.heroku.com/articles/heroku-cli and things seem to be fixed again.


#4

Hi. I’m new to Cloud9, and I want to be sure I don’t screw something up by running a command I don’t understand. Can I just run the command I found in the article at https://devcenter.heroku.com/articles/heroku-cli to upgrade to v3? That command is as follows:

wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh

Also, I’m not sure I understand what piping to sh does or means. Anyone up for explaining that?

Thanks in advance,


#5

OK, I went ahead and ran the Debian/Ubuntu version of the command, and it does seem to have worked as I am now able to log in.

Plus I have a better understanding of what sh does now. Apparently it interprets the command to ensure that, if it’s written in a different shell’s language, it will be understood by the Bourne shell, which is evidently the shell used in Cloud9.