Intermittent heroku login failure 400 bad request



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.
Password (typing will be hidden):
▸ HTTP Error: 400 Bad Request
▸ Invalid response from API.
▸ HTTP 400
▸ {}

▸ Are you behind a proxy?


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


Thanks. It appears you are correct, since I was able to run the Debian/Ubuntu command line on and things seem to be fixed again.


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 to upgrade to v3? That command is as follows:

wget -qO- | sh

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

Thanks in advance,


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.