Why I'm getting a 502 bad gateway error when installing go packages

2.8k Views Asked by At

I tried installing the golang.org/x/oauth2 and google.golang.org/api/vision/v1 packages by running

go get golang.org/x/oauth2
go get google.golang.org/api/vision/v1

but I get this error

go get: google.golang.org/[email protected] requires cloud.google.com/[email protected]: reading https://mirrors.aliyun.com/goproxy/cloud.google.com/go/@v/v0.99.0.mod: 502 Bad Gateway

Is there an alternative way of installing these packages? I'm on go version 1.17.5.

0

There are 0 best solutions below