failed checking for glab updates when non-gitlab.com token is set as GITLAB_TOKEN
Checklist
-
I'm using the latest version of the extension (Run glab --version
)- Extension version: 1.31.0
-
Operating system and version: 5.15.122-1-MANJARO -
Gitlab.com or self-managed instance? self-managed instance -
GitLab version (if self-managed) 14.0.6-ee (Use the version
endpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed glab auth status
to check for authentication issues
Summary
> glab --version
glab version 1.31.0
failed checking for glab updates: GET https://gitlab.com/api/v4/projects/gitlab-org/cli/releases: 401 {message: 401 Unauthorized}
Steps to reproduce
Just installed the cli.
What is the current bug behavior?
Can not use any command as i get the failed checking for glab updates: GET https://gitlab.com/api/v4/projects/gitlab-org/cli/releases: 401 {message: 401 Unauthorized}
error
What is the expected correct behavior?
Usage of the cli
Relevant logs and/or screenshots
gitlab.com
x gitlab.com: api call failed: GET https://gitlab.com/api/v4/user: 401 {message: 401 Unauthorized}
✓ Git operations for gitlab.com configured to use ssh protocol.
✓ API calls for gitlab.com are made over https protocol
✓ REST API Endpoint: https://gitlab.com/api/v4/
✓ GraphQL Endpoint: https://gitlab.com/api/graphql/
✓ Token: **************************
selfhosted/gitlab
✓ Logged in to selfhosted/gitlab as mygitusername (/home/eisbergsalat/.config/glab-cli/config.yml)
✓ Git operations for selfhosted/gitlab configured to use ssh protocol.
✓ API calls for selfhosted/gitlab are made over https protocol
✓ REST API Endpoint: https://sameselfhosted/gitlab/api/v4/
✓ GraphQL Endpoint: https://sameselfhosted/gitlab/api/graphql/
✓ Token: **************************
sameselfhosted.zt/gitlab
✓ Logged in to sameselfhosted.zt/gitlab as mygitusername (/home/eisbergsalat/.config/glab-cli/config.yml)
✓ Git operations for sameselfhosted.zt/gitlab configured to use ssh protocol.
✓ API calls for sameselfhosted.zt/gitlab are made over http protocol
✓ REST API Endpoint: http://sameselfhosted.zt/gitlab/api/v4/
✓ GraphQL Endpoint: http://sameselfhosted.zt/gitlab/api/graphql/
✓ Token: **************************
failed checking for glab updates: GET https://gitlab.com/api/v4/projects/gitlab-org/cli/releases: 401 {message: 401 Unauthorized}
also
> glab --version
glab version 1.31.0
failed checking for glab updates: GET https://gitlab.com/api/v4/projects/gitlab-org/cli/releases: 401 {message: 401 Unauthorized}
also tried reinstalling. Im using the official manjaro glab
Possible fixes
Ignore all tokens when checking for updates
Edited by Jay McCure