hygieia / hygieia-scm-gitlab-collector

Hygieia Collector for Gitlab SCM
https://github.com/capitalone/Hygieia/blob/gh-pages/pages/hygieia/collectors/scm/gitlab.md
Apache License 2.0
4 stars 13 forks source link

Failed to retrieve data, the repo or collector is most likey misconfigured #10

Closed mohamedaittaleb closed 4 years ago

mohamedaittaleb commented 4 years ago

I'm using gitlab-scm-collector. the widget work fine with private and public repositories. but I got 404 ERROR while using nested gitlab group http://gitlab.company.com/someting1/something2/myprpject.git

2019-10-04 16:41:00,016 [taskScheduler-1] INFO c.c.d.gitlab.GitlabUrlUtility - ---> Gitlab commits URI: https://gitlab.company.com/api/v4/projects/someting1%2Fsometing2/repository/commits/?ref_name=master&since=2019-10-04T15:03:30.652Z&per_page=100 2019-10-04 16:41:00,032 [taskScheduler-1] ERROR c.c.d.c.GitlabGitCollectorTask - Failed to retrieve data, the repo or collector is most likey misconfigured: org.springframework.web.client.HttpClientErrorException: 404 Not Found

waterzhu commented 4 years ago

I meet this problem today, have you solved this problem ?

Irvyne commented 4 years ago

I meet this problem today, have you solved this problem ?

Hi @waterzhu until the PR is approved you can just apply the small patch on File src/main/java/com/capitalone/dashboard/gitlab/GitlabUrlUtility.java and replace line 418 by repoName = String.join("%2F", urlParts);. Will do the job ;)