Open mseiwald opened 2 years ago
can you share the version of GitLab & the exporter you are using? 🤔
@mvisonneau
Gitlab: 14.7.0-ee Exporter: v0.5.2
hello @mseiwald, did you find a fix for that issue ? thank you ! :)
hello @mseiwald, did you find a fix for that issue ? thank you ! :)
Unfortunately no.
The gitlab api either supports a numeric id or the project path (urlencoded) https://mygitlab.domain/api/v4/projects/mygroup/subgroup1/myproject/repository/branches should be actually: https://mygitlab.domain/api/v4/projects/mygroup%2Fsubgroup1%2Fmyproject/repository/branches
mygroup/subgroup1/myproject -> mygroup%2Fsubgroup1%2Fmyproject
@mvisonneau Is a urlencode possible when creating the url?
Hello,
I'm trying to use this exporter with the following config:
and running with this command:
Log Snippet:
As can be seen it discovers subgroups and projcets fine. But then it's getting a 404 when trying to get the branches for each project. From my pov the URL
https://mygitlab.domain/api/v4/projects/mygroup/subgroup1/myproject/repository/branches
is wrong. Instead it should behttps://mygitlab.domain/api/v4/projects/:id/repository/branches
as per the docs.Can someone help out?