LoginSignup
0
1

More than 3 years have passed since last update.

railsでFailed to open TCP connection to oauth2.googleapis.com:443 (getaddrinfo: Name or service not known) というエラーがでた。

Posted at

Failed to open TCP connection to oauth2.googleapis.com:443 (getaddrinfo: Name or service not known)というエラーがでた。

環境 VirtualBox vagrant (CentOS)

RailsでOminiauth使って、Googleログイン機能作って、Googleログインしようとした。すると

Failed to open TCP connection to oauth2.googleapis.com:443 (getaddrinfo: Name or service not known)

というエラーが。

解決策

vagrant reloadをすることで治った。
どうやら、途中で、PCをスリープにすると、CentOSのネットワークに障害が起きてしまうようだった。
その場合はvagrant reloadしなくてはならない。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1