Search code examples
google-cloud-platformgoogle-cloud-sdk

ERROR: gcloud crashed (ServerNotFoundError): Unable to find the server at www.googleapis.com


I am trying to sign in to the cloud sdk with the command: gcloud auth login, and I select my google account in the browser. After I click allow, in the terminal it says:

ERROR: gcloud crashed (ServerNotFoundError): Unable to find the server at www.googleapis.com

If you would like to report this issue, please run the following command:
gcloud feedback

To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics

And when I run the command gcloud info --run-diagnostics it also stops with the error:

ERROR: Reachability Check failed.
Cannot reach https://www.googleapis.com/auth/cloud-platform (ServerNotFoundError)
Network connection problems may be due to proxy or firewall settings.

My config is the default one without any modifications.
I could sign in with no issues to the cloud sdk for a long time.
I am on windows 10.
I tried signing in both with the cloud sdk shell and the windows terminal, as administrators and not as administrators.

How do I fix this error?

UPDATE: I run the tracert -4 www.googleapis.com and also -6 command and this is the result:

Unable to resolve target system name www.googleapis.com.

I am working from home, and I don't know what a network proxy is, I might be accidentally using one.


Solution

  • You may have enabled proxy with gcloud, use-> gcloud config list to get the proxy settings

    To unset proxy use: gcloud config unset proxy/[params] where params are address, port etc.