Go version
N/A
What operating system and processor architecture are you using (go env
)?
N/A
What did you do?
▶ gomote create linux-arm
What did you expect to see?
gomote create linux-arm
runs ok.
What did you see instead?
▶ gomote create linux-arm
dialing the server=build.golang.org:443 failed with: IAP token exchange failed: status 400 Bad Request, body "{\n \"error\": \"invalid_grant\",\n \"error_description\": \"Token has been expired or revoked.\"\n}
Comment From: cagedmantis
We need to add the ability to refresh the authentication tokens. For now, you can work around this by removing the file located at os.UserConfigDir() + gomote/iap-refresh-tv-token
and attempting another gomote action. You should be able to reauthenticate.
Comment From: cagedmantis
@cuonglm Did the suggested action resolve your issue?
Comment From: cuonglm
@cuonglm Did the suggested action resolve your issue?
Sorry for late response, just back from the holidays.
It works for me.
Thank you.
Comment From: cagedmantis
@cuonglm No worries. I'm also just getting back from the holidays. Thanks.
Comment From: gopherbot
Change https://go.dev/cl/554056 mentions this issue: internal/iapclient: check for invalid token
Comment From: cagedmantis
I suspect this issue has been fixed by the CL. I'm going to some time to confirm that it doesn't happen again.