jarun / googler

:mag: Google from the terminal
GNU General Public License v3.0
6.09k stars 529 forks source link

[Errno 8] nodename nor servname provided, or not known #405

Closed gabriel-roth closed 3 years ago

gabriel-roth commented 3 years ago

`googler -d [DEBUG] googler version 4.3.2 [DEBUG] Python version 3.9.5 [DEBUG] Platform: macOS-11.4-arm64-arm-64bit [DEBUG] Connecting to new host www.google.com Traceback (most recent call last): File "/opt/homebrew/bin/googler", line 2159, in new_connection self._conn.connect(self._notweak) File "/opt/homebrew/bin/googler", line 1592, in connect sock = self.create_socket_connection() File "/opt/homebrew/bin/googler", line 1632, in create_socket_connection results = socket.getaddrinfo(self.host, self.port, self.address_family, socket.SOCK_STREAM) File "/opt/homebrew/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/socket.py", line 953, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 8] nodename nor servname provided, or not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/homebrew/bin/googler", line 3819, in main() File "/opt/homebrew/bin/googler", line 3792, in main repl = GooglerCmd(opts) File "/opt/homebrew/bin/googler", line 2792, in init self._conn = GoogleConnection(self._google_url.hostname, File "/opt/homebrew/bin/googler", line 2099, in init self.new_connection(host, port=port, timeout=timeout) File "/opt/homebrew/bin/googler", line 1569, in wrapped ret = func(*args, **kwargs) File "/opt/homebrew/bin/googler", line 2162, in new_connection raise GoogleConnectionError(msg) main.GoogleConnectionError: Failed to connect to www.google.com: [Errno 8] nodename nor servname provided, or not known.`

gabriel-roth commented 3 years ago

I'm not seeing a "response body" file URL in the debug output.

jarun commented 3 years ago

It seems more like a network config issue that a googler problem.

gabriel-roth commented 3 years ago

Thanks. In case anyone else gets this error message, this Stack Overflow comment prompted me to try turning File Sharing on and then off again, then restart my machine. That fixed the problem and Googler is working again.

https://apple.stackexchange.com/questions/253817/cannot-ping-my-local-machine#comment366668_253834