jamiet
jamiet

Reputation: 12264

gcloud can connect but gsutil cannot

Trying to use gcloud & gsutil from a laptop. gcloud can connect but gsutil cannot:

mylaptop:~ jamiet$ gcloud projects list | head -2
PROJECT_ID           NAME                 PROJECT_NUMBER
dev-99999            dev-99999            999999999999
mylaptop:~ jamiet$ gsutil ls
INFO 0305 21:11:10.561232 util.py] Retrying request, attempt #4...
INFO 0305 21:11:23.826426 util.py] Retrying request, attempt #5...
^CCaught CTRL-C (signal 2) - exiting

Any suggestions what I can do to diagnose the problem?

Upvotes: 1

Views: 2445

Answers (3)

fisher
fisher

Reputation: 11

I use clash as my proxy, and use port 7890 as my proxy port. There was a setting in my .zshrc file:

export http_proxy=127.0.0.1
export http_proxy=127.0.0.1

After unset them, I can use gsutil to download smoothly

unset http_proxy
unset https_proxy

Upvotes: 1

mani
mani

Reputation: 11

My issue was resolved by deleting ~/.boto file.

Upvotes: 0

jamiet
jamiet

Reputation: 12264

Turned out to be human error. Internal proxy settings were wrong. Sorry folks, thx to those that replied.

Upvotes: 3

Related Questions