-
Notifications
You must be signed in to change notification settings - Fork 7
Bad apiUrl ex handling and fix for tekton dashboard URL #188
Conversation
also issue: #187 |
src/main/java/kabasec/Login.java
Outdated
@@ -96,7 +96,12 @@ public Properties login(Properties args) { | |||
} catch (KabaneroSecurityException e) { | |||
return returnError(e.getStatusCode(), "An error occurred during authentication for user ", e); | |||
} catch (Exception e) { | |||
System.out.println(returnError(500, "An error occurred during authentication for user", e)); | |||
if (e.getMessage().contains("Unexpected char 60 at")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to reflect apiUrl problem back to the client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works back to client now
Davids-MBP:~ dacohen@us.ibm.com$ kabanero login kabanero-cli-kabanero.apps.oheightoh.os.fyre.ibm.com -u davco01a |
Davids-MBP:~ dacohen@us.ibm.com$ kabanero onboard davco01a |
Bad apiUrl ex handling and fix for tekton dashboard URL