title: Why I'm getting a 502 bad gateway error when installing go packages
body: <p>I tried installing the <code>golang.org/x/oauth2</code> and <code>google.golang.org/api/vision/v1</code> packages by running</p>
  <pre><code>go get golang.org/x/oauth2
  go get google.golang.org/api/vision/v1
  </code></pre>
  <p>but I get this error</p>
  <blockquote>
  <p>go get: google.golang.org/api@v0.63.0 requires
  cloud.google.com/go@v0.99.0: reading
  <a href="https://mirrors.aliyun.com/goproxy/cloud.google.com/go/@v/v0.99.0.mod" rel="nofollow noreferrer">https://mirrors.aliyun.com/goproxy/cloud.google.com/go/@v/v0.99.0.mod</a>:
  502 Bad Gateway</p>
  </blockquote>
  <p>Is there an alternative way of installing these packages?
  I'm on go version 1.17.5.</p>