Search code examples
sdk

Google Cloud SDK Init web authentication error


I installed Google Cloud SDK on Mac and then ran the command ./google-cloud-sdk/bin/gcloud init but every time I do this I get the following errors:

Errors

it comes up with the prompt to log in and choose an account but then every time I click on my google account it tries to load and then I get a safari cannot connect to server error.

I have also tried running ./google-cloud-sdk/bin/gcloud auth login with the same errors.

Any help would be greatly appreciated


Solution

  • Did you try running it without opening the browser?

    gcloud auth login --no-launch-browser