Closed jonjohnsonjr closed 4 years ago
Can't repro on my desktop, but I believe you. Error's here: https://github.com/golang/oauth2/blob/master/google/default.go#L118
It's most likely that none of the token sources returned anything, and only the last error is being returned.
Trying to access gcloud
's access_token in parallel can cause some of the requests to fail, which I assume is the root cause here:
#!/bin/bash
foo () {
gcloud config config-helper --force-auth-refresh --format="value(credential.access_token)"
}
for i in {1..100}; do foo & done
This got fixed internally recently (in gcloud). Anecdotally, all my tools are now ~4x faster because getting access tokens from gcloud is much faster. Going to close this, please reopen if you still see it after updating gcloud.
While trying to speed something up, I noticed concurrent invocations can cause failures with this error:
Repro:
I suspect this is more likely an issue with https://github.com/golang/oauth2 (or how we're using it?).
Any ideas?