From 75dfcbba810e7436447625eef4285a4e9353c002 Mon Sep 17 00:00:00 2001 From: Tomas Vik Date: Tue, 11 Mar 2025 11:20:15 +0100 Subject: [PATCH] Code Suggestions troubleshooting update for routable tokens --- .../code_suggestions/troubleshooting.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/user/project/repository/code_suggestions/troubleshooting.md b/doc/user/project/repository/code_suggestions/troubleshooting.md index 098d6b455f141e..178e35d8f9fa6e 100644 --- a/doc/user/project/repository/code_suggestions/troubleshooting.md +++ b/doc/user/project/repository/code_suggestions/troubleshooting.md @@ -72,6 +72,24 @@ specifically the token system. To resolve the issue: 1. Reauthorize your GitLab account using OAuth. 1. Test the Code Suggestions feature with different file extensions to verify if the issue is resolved. +### Personal Access Token (PAT) authentication troubleshooting + +On **GitLab.com** we've changed the Personal Access Token (PAT) format and older extensions are incompatible with this change. +If your GitLab instance is `gitlab.com` and you see the following errors after creating a new PAT, ensure you use the +latest extension version. + +- `Request for Information about OAuth token failed because the token is expired or revoked.` +- `Fetching Information about personal access token from https://gitlab.com/api/v4/personal_access_tokens/self failed` + +Update to the following extension version or higher. + +| Extension | Version | Released | +|----------------|-----------|--------------| +| VS Code | `5.39.0` | `2025-02-10` | +| JetBrains | `3.6.1` | `2025-02-06` | +| Visual Studio | `0.49.0` | `2025-02-17` | +| Neovim | `37853d` | `2025-03-06` | + ## VS Code troubleshooting The following documentation is for Code Suggestions-specific troubleshooting for -- GitLab