Skip to content

Message: "Your 'gitlab' credentials are either invalid or expired." regularly pops up #3482

@ulrichSchreiner

Description

@ulrichSchreiner

Description

i have vscode with gitlens with a gitlab repository open. the popup

Your 'gitlab' credentials are either invalid or expired. Would you like to try reauthenticating?

regularly pops up. When i click the "Reauthenticate" button,somtimes a browser opens with authenticates gitkraken with gitlab and everything displays ok (gitlab with a green ok-check). and in gitlab i see a Gitkraken as an "Application" in my profile settings with the scopes read_user read_repository api . but sometimes simply nothing happens when i click the button.

My credentials are not invalid nor expired. I have an PAT from gitlab which works; i can simply do a git fetch on command line and everything works.

as there is a similair report #2949 i enabled the debug-logging and something like this appears:

[2024-08-20 10:56:50.145] [43672] [GITLAB] GET https://gitlab.com/api/v4/projects/..../repository/commits/...../merge_requests [336ms]
[2024-08-20 10:56:50.145] [ aa97] GitLabApi.getPullRequestForCommit 
Error: Your 'gitlab' credentials are either invalid or expired
[2024-08-20 10:56:50.145] [ aa97] GitLabApi.getPullRequestForCommit — failed [336ms]
Error: Your 'gitlab' credentials are either invalid or expired
[2024-08-20 10:56:50.145] [ aa91] GitLabIntegration.getPullRequestForCommit 
Error: Your 'gitlab' credentials are either invalid or expired
[2024-08-20 10:56:50.145] [ aaa3] GitLabIntegration.trackRequestException
[2024-08-20 10:56:50.145] [ aaa3] GitLabIntegration.trackRequestException completed [0ms]
[2024-08-20 10:56:50.145] [ aa91] GitLabIntegration.getPullRequestForCommit(e={"key":"gitlab.com/XXXXX/YYYYY","owner":"XXXXX","name":"YYYYY"}, t=2a050da48a364c0d128e5c2c32228dace51d9bfd, r=undefined) completed [337ms]
[2024-08-20 10:56:50.145] [ aa99] GitLabIntegration.getPullRequestForCommit(e={"key":"gitlab.com/XXXXX/YYYYY","owner":"XXXXX","name":"YYYYY"}, t=2a050da48a364c0d128e5c2c32228dace51d9bfd, r=undefined) completed [319ms]

Well there is no MR (PR) with my branch. So the query for the "Merge request for branch" will not be successful (sometimes the branch does not exist on the remote). But as i said: my credentials are not invalid and not expired. and it is a little annoying that every now and then the popup in vscode appears.

GitLens Version

15.3.0

VS Code Version

Version: 1.92.2
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.10.5-arch1-1

Git Version

git version 2.43.0

Logs, Screenshots, Screen Captures, etc

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration-gitlabIssues or features related to GitLab integrationstriageNeeds to be looked at

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions