ruby-on-railsherokuheroku-toolbelt

Unable to connect to Heroku API, please check internet connectivity and try again


I'm getting this error, but obviously I'm connected! I entered a ticket with Heroku 15 hours ago but received no response.

C:\>heroku config
Enter your Heroku credentials.
Email: myemail@mydomain
Password (typing will be hidden):
 !    Unable to connect to Heroku API, please check internet connectivity and try again.

$ heroku status
 !    Unable to connect to Heroku API, please check internet connectivity and try again.

I even re-installed Heroku client. I even pushed to Heroku while this problem was happening through Git.


Solution

  • It was because of a missing certificate authority file. The environment variable was pointing to a file that wasn't there.

    SSL_CERT_FILE=C:\ruby200\cacert.pem
    

    I wish it gave an error message.