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

Could not extract response: no suitable HttpMessageConverter found for response type #24

Open Sasuke021990 opened 4 years ago

Sasuke021990 commented 4 years ago

Hi Team, i am trying to implement on gitlab collector and facing the below Exception.

When i try to deploy the executable "gitlab-scm-collector.jar" it throws this exception.

"org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class [Lcom.capitalone.dashboard.gitlab.model.GitlabBoard;] and content type [text/html;charset=utf-8]"

Properties file details

Database Name

dbname=dashboarddb

Database HostName - default is localhost

dbhost=localhost

Database Port - default is 27017

dbport=27017

MongoDB replicaset

dbreplicaset=[false if you are not using MongoDB replicaset]

dbhostport=[host1:port1,host2:port2,host3:port3]

Database Username - default is blank

dbusername=dashboarduser

Database Password - default is blank

dbpassword=dbpassword

Logging File location

logging.file=./logs/gitlab.log

Collector schedule (required)

gitlab.cron=0 0/1

Gitlab host (optional, defaults to 'gitlab.com')

gitlab.host=gitlab.com

Gitlab protocol (optional, defaults to 'http')

gitlab.protocol=https

    #If enabled, dashboard URL configured in UI follows this example <gitlab.protocol>://<gitlab.host>/<gitlab_project_id>

gitlab.useProjectId (optional, defaults to false)

Gitlab port (optional, defaults to protocol default port)

gitlab.port=80

Gitlab path (optional, if your instance of gitlab requires a path)

gitlab.path=/abc001/master

If your instance of Gitlab is using a self-signed certificate, set to true, default is false

gitlab.selfSignedCertificate=true

Gitlab API Token (required, user token the collector will use by default, can be overridden on a per repo basis from the UI. API token provided by Gitlab)

gitlab.apiToken=****

Maximum number of previous days from current date, when fetching commits

gitlab.commitThresholdDays=15

Gitlab key for private repos

gitlab.key=****