YPSI-SAS / centctl

Centctl is a Go CLI which allows to manage multiple Centreon servers.
MIT License
11 stars 4 forks source link

Auth problem "invalid character '<' looking for beginning of value" #20

Closed aukfood closed 1 year ago

aukfood commented 1 year ago

Describe the bug Hello YPSI Teams, happy new year :)

I have a bug with cenctl when I try to connect :

~/scripts/centctl$ ./centctl --insecure --url "https://myurl" --login "login" --password "password" list host
[ERROR] 2023/01/05 06:09:36 centctl/cmd.initConfig:root.go:213 centctl authentification - invalid character '<' looking for beginning of value

Same problem with yaml file for configuration :

servers:
  - server: "centreon"
    url: "https://myrul"
    insecure: true
    login: "mylogin"
    password: "mypassword"
    version: "v2"
    default: true

Versions

Best regards

aukfood commented 1 year ago

En fait on à isolé un pb dans le yaml de configuration donc je ferme ça marche.