Issue: Request unauthorized error in Release CLI while processing YAML document

Issue

When trying to generate or apply a configuration via Command Line Interface (CLI) with CLI configuration file, the following error is received:

Error while processing YAML document at line 1 of XL YAML file <Filename.yaml>:
401 Request unauthorized. Please check your credentials.

Sample config file:

 ~/xebialabs cat config.yaml                                                                                        
blueprint:
  current-repository: XL Blueprints
  repositories:
  - name: XL Blueprints
    type: http
    url: https://dist.xebialabs.com/public/blueprints/${CLIVersion}/
xl-release:
  authmethod: http
  password: admin@123
  url: http://172.18.100.247:5516/
  username: admin

Cause

Could be indentation or the auth method specified.

Workaround/Resolution Action

  • Try using authmethod set to basic in the config.yaml
    OR
  • Try passing the password directly in the xl command

Example:

xl --config config.yaml --xl-release-password admin@123 apply -f test.yaml

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.