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?
1 out of 1 found this helpful

Comments

3 comments
  • I was having the exact problem, and changing authmethod from "http" to "basic" resolved it for me!!!

    This article saved me opening a support ticket - great job digital.ai!!!!

    0
  • Is this and other articles accessible publicly? It doesn't seem so, or at least google doesn't find it .... This kind of info available publicly would be a huge help to all of your customers I would think.

     

    0
  • Thanks for the feedback, Dan. We're pleased we were able to help you help yourself.

    Our knowledge content for Release and Deploy is public in that you don't have to log in to support@digital.ai to view it, but apparently, Google does not have access. We'll look into it.

    0

Please sign in to leave a comment.