Refreshing OAuth token fails
Checklist
-
I'm using the latest version of the extension (see the latest version in the right column of this page) - Extension version: v3.61.0
-
I'm using the latest VS Code version (find the latest version here) - VS Code version: 1.76.2
-
I'm using a supported version of GitLab (see README for the supported version) - GitLab version: gitlab.com
Summary
Every so often (every few weeks maybe) I have to remove my GitLab credentials and login again because the OAuth refresh process fails.
I suppose GitLab might be forcing me to refresh for security reasons or something, but in that case the notification should say "You need to refresh your token" instead of an error.
Steps to reproduce
I have no idea how to reproduce it. I go about my business, then one day I try to do something that queries the API and I get an error notification.
What is the current bug behavior?
My OAuth token is not refreshed.
What is the expected correct behavior?
My OAuth token is refreshed.
Relevant logs and/or screenshots
2023-04-21T15:01:53:768 [warning]: Unable to fetch selected project accumulatenetwork/accumulate from https://gitlab.com. Ignoring this selected project
2023-04-21T15:01:53:768 [info]: Found 0 projects for urls: [
"git@gitlab.com:ethan.reesor/accumulate.git",
"git@gitlab.com:accumulatenetwork/accumulate.git"
]
2023-04-21T15:39:16:059 [info]: Refreshing expired token for account https://gitlab.com|REDACTED.
2023-04-21T15:39:16:330 [error]: Refreshing OAuth token has failed: already refreshed. The token might have been refreshed in another window. You can retry the operation. If this error persists, remove and re-add your GitLab account.
Error: Refreshing OAuth token has failed: already refreshed. The token might have been refreshed in another window. You can retry the operation. If this error persists, remove and re-add your GitLab account.
at ar.exchangeToken (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:451:5920)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async #r (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:452:2069)
at async nc.graphqlRequest (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:440:831)
at async nc.getProjects (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:440:2364)
at async r (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:469:16997)
at async i (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:469:16700)
at async Promise.all (index 0)
at async zu (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:469:16784)
at async uo (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:469:17272)
at async Ex (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:485:12875)
at async xx (/home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:485:13619)
at async /home/ME/.vscode/extensions/gitlab.gitlab-workflow-3.61.0/out/extension.js:492:7704
at async c.h (/opt/vscode/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:108776)
at async c.h (/opt/vscode/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:108776)