Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ENOTFOUND: getaddrinfo ENOTFOUND api.heroku.com api.heroku.com:443 Error for heroku create

My steps are below:

  1. Download the heroku-osx.pkg, and installed it.
  2. $ heroku login with my account and password
  3. cloned the ruby-getting-started: $ git clone https://github.com/heroku/ruby-getting-started.git
  4. But when I run $ 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:

  • I got error while using "git push heroku master"
  • Hibernate unable to create schema automatically on Heroku postgres

But they are not when execute $ heroku create comes out the error.

like image 225
aircraft Avatar asked Jan 22 '17 08:01

aircraft


2 Answers

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.

like image 171
the21st Avatar answered Oct 15 '22 14:10

the21st


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.

like image 43
aircraft Avatar answered Oct 15 '22 14:10

aircraft