You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using webb 1.3.
I'm doing a PUT request to a restful webservice using 2-way compression.
The server is returning code 204, which is successful request ("No content").
But the response is empty (as it should be);
WebbException: EOFException is being thrown because Webb is trying to decompress an empty response.
this is my code: Response<Void> response = webb.put("descarga") .header(Webb.HDR_CONTENT_TYPE, Webb.APP_JSON) .body(byteArrayOutputStream.toByteArray()) .compress() .connectTimeout(Config.Webservice.getTimeout()) .retry(1, false) .ensureSuccess() .asVoid();
The text was updated successfully, but these errors were encountered:
Using webb 1.3.
I'm doing a PUT request to a restful webservice using 2-way compression.
The server is returning code 204, which is successful request ("No content").
But the response is empty (as it should be);
WebbException: EOFException is being thrown because Webb is trying to decompress an empty response.
this is my code:
Response<Void> response = webb.put("descarga") .header(Webb.HDR_CONTENT_TYPE, Webb.APP_JSON) .body(byteArrayOutputStream.toByteArray()) .compress() .connectTimeout(Config.Webservice.getTimeout()) .retry(1, false) .ensureSuccess() .asVoid();
The text was updated successfully, but these errors were encountered: