Good day,
What is failing?
I am trying to onboard a new project form Gitlab. But it keeps failing even when the Gitlab Access token that I use has all the permissions available.
What is expected?
To successfully onboard the project from Gitlab.
Observations
So far I have made sure of the following.
- My Gitlab legacy token has all the permissions selected during creation. And it is not expired.
- I am a Developer role bearer in the project, so I hope that it is sufficient.
- My SonarQube instance version is `Developer Edition v2026.3.1 (123439)` and it is currently a supported version.
- The error is a 500 error from Gitlab.
- I went through related issues but no help. Marked as resolved/closed but seems like it still is there.
I have attached relevant screenshots, logs below. Do let me know if there is anything that I am doing wrong, or we just have to wait until this is fixed. Thanks in advance.
Screenshot from the SonarQube UI
SonarQube web log
2026.07.14 22:10:21 DEBUG web[e2b57d58-bde5-4840-b516-f4c9a7185bd1][o.s.w.c.OkHttpClientBuilder] <-- 500 https://gitlab.com/api/v4/projects?archived=false&simple=true&membership=true&order_by=name&sort=asc&search= (15573ms, 39-byte body)
2026.07.14 22:10:21 ERROR web[e2b57d58-bde5-4840-b516-f4c9a7185bd1][o.s.a.c.g.GitlabApplicationClient] Gitlab API call to [https://gitlab.com/api/v4/projects?archived=false&simple=true&membership=true&order_by=name&sort=asc&search=] failed with 500 http code. gitlab response content : [{"message":"500 Internal Server Error"}]
Edit:
Observed that this fails by debugging in the SonarQube instance.
curl -i --header "PRIVATE-TOKEN: <TOKEN>" "https://gitlab.com/api/v4/projects?archived=false&simple=true&membership=true&order_by=name&sort=asc&search="
while this passes.
curl -i --header "PRIVATE-TOKEN: <TOKEN>" "https://gitlab.com/api/v4/projects?archived=false&simple=true&membership=true&sort=asc
&search="
The difference is order_by=name query parameter.
