Cannot configure Gitlab integration in IntelliJ, authentication fails
已回答
I'm trying to integrate my gitlab account into my IntelliJ IDE.
For this, I've created an access token within my gitlab account.
If I then run:
curl "https://repo.base.com/api/v4/version" --header "PRIVATE-TOKEN: {secret}"
I successfully get a proper JSON response.
When attempting to login within the IDE and the https://repo.base.com base URL and the same {secret}, by specifying them under Settings > Versioning > Gitlab, and the clicking on “Login”, I get the following response:
HTTP Request Request GET https://repo.base.com/api/v4/version failed with status code 401 and response body: {„message“:“401 Unauthorized“}
What's the problem ?
请先登录再写评论。
down version to 2023.2.5 ,i met this problem when update to 2023.3.2 version
Hi,
Can you please contact our support with logs?
Please enable debug logs (Help - Diagnostic Tools - Debug Log Settings...) for the following category:
#org.jetbrains.plugins.gitlab
Then please reproduce the issue and share the entire logs folder zipped as per https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
Which version of gitlab are you using? We are supporting only 14.x.x and up.
Hi,
I have same issue and using ultimate 2025.2
@Samuel-extrne Arzouan
Which GitLab server version do you use?
Could you please enable debug logging by adding the following lines to Help > Diagnostic Tools > Debug Log Settings..:
restart IDE, reproduce the issue again and share your IDE logs (Help > Collect Logs and Diagnostic Data)?
You can upload the zip file here: https://uploads.jetbrains.com, just provide the uploaded file ID. Thanks!