Skip to content

NPE for wrong clientSecret during TokenAccess #29

@wasi1989

Description

@wasi1989

It was not showing correct message for wrong clientSecret rather throwing NPE. When i checked in code If response is not 200 then you are parsing it to TokenResponseException . You are creating instance of TokenResponseException by using response.getContent() and failing in JsonParser(below is code) because content is returning null .
public JsonParser createJsonParser(InputStream in, Charset charset) throws IOException { Preconditions.checkNotNull(in);
return new JacksonParser(this, this.factory.createJsonParser(in)); }
SS attached.

More Details:
http://stackoverflow.com/questions/41012392/unauthorized-error-in-uber-token-api
response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions