"A potential cause of this could be because you are behind a proxy" when using "gcloud init" command

2,462 views
Skip to first unread message

Ma Zhikai

unread,
May 20, 2016, 2:07:40 AM5/20/16
to google-cloud-sdk
After installing the Google Cloud SDK, i used "gcloud init" command to initialize the SDK, but it always reports the following the error:

ERROR: There was a problem with web authentication. Try running again with --no-launch-browser.
ERROR: (gcloud.auth.login) Could not reach the login server. A potential cause of this could be because you are behind a proxy. Please set the environment variables HTTPS_PROXY and HTTP_PROXY to the address of the proxy in the format "protocol://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
You can use [gcloud config] to change more gcloud settings.

Your active configuration is: [default]

[core]
disable_usage_reporting = False
[metrics]
command_name = gcloud.config.list
ERROR: (gcloud.init) Failed command: [auth login --force --brief] with exit code
 [1]

Could anyone tell me how to resolve this issue?
Much appreciated~

T

unread,
May 30, 2016, 12:51:42 PM5/30/16
to google-cloud-sdk
解决了么

Xiao Liang

unread,
Aug 15, 2016, 5:44:09 AM8/15/16
to google-cloud-sdk
You should follow the hint, Using option --no-launch-browser and try again and follow message that show in command line.

Good luck

在 2016年5月20日星期五 UTC+8下午2:07:40,Ma Zhikai写道:
Reply all
Reply to author
Forward
0 new messages