Reputation: 26924
My steps are below:
heroku-osx.pkg
, and installed it.$ heroku login
with my account and password$ git clone https://github.com/heroku/ruby-getting-started.git
$ heroku create
in my Terminal.Reports the error:
Creating app... !
▸ ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443
I have find the related question in SO:
But they are not when execute $ heroku create
comes out the error.
Upvotes: 10
Views: 20573
Reputation: 1
I was getting the same , Because I was connected to VPN and I think network was blocking the same . So disconnect VPN and try once.
Upvotes: 0
Reputation: 26924
Carelessly, I don't know why, I tried several times of :
$ heroku create
It create succeed, with the logs:
Creating app... done, ⬢ still-harbor-32209
https://still-harbor-32209.herokuapp.com/ |
https://git.heroku.com/still-harbor-32209.git
So, I think try several times will solve it.
Upvotes: 10
Reputation: 52708
This happened to me when the internet temporarily cut out for a few seconds while I was trying to run a heroku command.
The Heroku CLI returned Error: getaddrinfo ENOTFOUND api.heroku.com
As soon as the internet connection was restored, everything was back to normal
Upvotes: 2
Reputation: 1851
The problem for me was network connection, by checking and re-establishing connection, it worked perfectly fine
Upvotes: 0
Reputation: 459
I had a similar issue. my OS is windows, I solve this problem by restarting my command line and running the command all over and everything worked fine
Upvotes: 0
Reputation: 2010
I experienced the same issue recently. To debug this:
1) I tried restarting my terminal entirely CMD+Q
, but still hit the timeout issue
2) I ran a whois
on my-heroku-app.com
and that command also timed out, even though I could connect to it through my browser
3) I disconnected my VPN and ran a whois
command. This fixed the issue
After reconnecting my VPN, everything worked smoothly. Not sure what caused the hiccup, but I hope these steps help for anyone trying to debug this.
Upvotes: 1
Reputation: 119
You may not be connected to the internet. Make sure to check your connection as it is required to complete this command.
Upvotes: 6
Reputation: 1096
The same was happening to me on Mac OS X 10.12.6 in iTerm2 3.1.5
Restarting iTerm solved the issue for me.
Upvotes: 20
Reputation: 671
It means that the connection between api.heroku.com
with a port of 443
and to your PC failed and results to shutdown. Thus retrying the command will succeeds.
Upvotes: 8