I try to use the Gitlab Workflow plugin for VS Code. Unfortunately it does not find my project. I debugged it and found that it calls
https://mydomain/gitlab/api/v4/projects/mygroup%2Fmyproject
and the api returns
{
error: "404 Project Not Found"
}
This should work according to the documentation.
If I call https://mydomain/gitlab/api/v4/projects/:id
where id is the project number I get
path_with_namespace: "mygroup/myproject",
Browsing the internet I found some people claiming it does not work for them too but no solution. Others say it works perfectly for them.
I've tried with Gitlab CE 12.x.x and upgraded now to the latest version 13 (13.0.6) using https://github.com/sameersbn/docker-gitlab
I've tried with several projects to no avail.
I'm maintainer for the projects.
The access token has the rights api and read_user as requested by the plugin.
Clearly I'm missing something. But what?
EDIT:
My setup is having the docker container behind a reverse proxy apache. Maybe the authorization does not work as expected. The plugin sends a header PRIVATE-TOKEN
. I'll check if the header is passed to the api.
Nope. The PRIVATE-TOKEN header is recieved by the docker container.
EDIT2:
I set up a public group and a public project to eliminate auth problems. Still does not work. Search returns 404.
EDIT3:
Since Dashrath Mundkar asked about the curl command:
curl -H "PRIVATE-TOKEN:XXXXXXX" https://mydomain/gitlab/api/v4/projects/mygroup%2Fmyproject