-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
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
Labels
No labels