Skip to content

Not getting proper response body in case of error. #100

@prat2065

Description

@prat2065

If I hit qubole API to create schedule directly with an invalid value of frequency say -1, I get the following error message : "Validation failed: Frequency must be an integer greater than 0".
But while using the qubole sdk,we get the response as javax.ws.rs.client.ResponseProcessingException: javax.ws.rs.ClientErrorException: HTTP 422 Unprocessable Entity

Hence somewhere you have lost the exact error message given by qubole API .
422 status code can be given by qubole for multiple reasons.
It is happening because in ErrorResponseFilter,you are consuming the error message from input stream and the user will not be able to consume it later.Hence,we should stick the message back to the response context.

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