Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show a nicer error message if the client is not authenticated #92

Closed
jstrachan opened this issue Sep 9, 2015 · 0 comments
Closed

show a nicer error message if the client is not authenticated #92

jstrachan opened this issue Sep 9, 2015 · 0 comments

Comments

@jstrachan
Copy link
Contributor

the following is a little cryptic:

Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Unauthorized': was expecting ('true', 'false' or 'null')
 at [Source: io.fabric8.kubernetes.client.internal.org.jboss.netty.buffer.ChannelBufferInputStream@73a19967; line: 1, column: 14]
    at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1581)
    at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:533)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3448)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2607)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:841)
    at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:737)
    at com.fasterxml.jackson.databind.ObjectReader._initForReading(ObjectReader.java:378)
    at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1494)
    at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1102)
    at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleResponse(BaseOperation.java:433)
    at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.handleGet(BaseOperation.java:463)
    at io.fabric8.kubernetes.client.dsl.internal.BaseOperation.get(BaseOperation.java:100)

wonder if we can give the user a hint they need to login via oc login or kubectl login?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants