Itai Elidan
Itai Elidan

Reputation: 272

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.

Upvotes: 3

Views: 8331

Answers (3)

jalaj
jalaj

Reputation: 61

I faced the same issue when connected to VPN. Disconnected from VPN and ran the below command and it worked. gcloud auth login

Upvotes: 0

Sujit
Sujit

Reputation: 61

You need to login into your gcloud SDK first using this command

gcloud auth login

It will open a google sign up page in the browser. Select your account and then you will get a conformation in you command line that you have been authenticated. Then try what you wanted to do.

Upvotes: 0

Dakshi Suri
Dakshi Suri

Reputation: 26

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.

Upvotes: 1

Related Questions