kabanero-io / kabanero-command-line-services

This repo will be archived soon.
Apache License 2.0
3 stars 7 forks source link

Improve warning message when api server cannot be reached #181

Closed mtamboli closed 4 years ago

mtamboli commented 4 years ago

When configuring CLI, you need to define the following information for authentication. But if you provide incorrect apiURL, there is no clear message for this configuration in CLI pod as well as for CLI command:

CLI Pod Error: [err] An error occurred. An error occurred during authentication for user [mtamboli]. Unexpected char 60 at (line no=1, column no=1, offset=0)

Error on the kabanero login command: An internal error occurred

Misconfigured apiURL:

  github:
    apiUrl: https://github.com
    organization: myorg
    teams:
    - my team
davco01a commented 4 years ago

What do you see at the CLI client side ?

davco01a commented 4 years ago

PR: https://github.com/kabanero-io/kabanero-command-line-services/pull/183

davco01a commented 4 years ago

merged

davco01a commented 4 years ago

Davids-MBP:~ dacohen@us.ibm.com$ kabanero login kabanero-cli-kabanero.apps.oheightoh.os.fyre.ibm.com -u davco01a Password: login failed, you may want to check your authorization configuration. Check the CLI Service pod for more information. Davids-MBP:~ dacohen@us.ibm.com$