Source:
<code>private <T> Response<T> uncheckedExecute(Request<T> request, Executor executor) { if (request.ignoreCookies()) cookieStore.clear(); org.apache.http.client.fluent.Request commonsRequest = getCommonsRequest(request); if(!request.headers.containsKey("X-OpenRosa-Version")){ commonsRequest.addHeader("X-OpenRosa-Version", "1.0"); } request.headers.forEach(commonsRequest::addHeader); if (request.getMethod() == POST) { HttpEntity body; if (request.isMultipart()) { MultipartEntityBuilder bodyBuilder = MultipartEntityBuilder.create(); for (MultipartMessage part : request.multipartMessages) bodyBuilder = bodyBuilder.addPart( part.getName(), new InputStreamBody(part.getBody(), ContentType.create(part.getContentType()), part.getAttachmentName()) ); body = makeRepeatable(bodyBuilder.build()); } else { body = makeRepeatable(buildBasicEntity(request.getBody())); } commonsRequest.body(body); } try { return executor .execute(commonsRequest) .handleResponse(res -> Response.from(request, res)); } catch (HttpHostConnectException e) { throw new HttpException("Connection refused", e); } catch (SocketTimeoutException | ConnectTimeoutException e) { throw new HttpException("The connection has timed out", e); } catch (IOException e) { throw new UncheckedIOException(e); } finally { try { UncheckedFiles.closeInputStream(request.getBody()); } catch (final BriefcaseException exception) { <START> LOG.error("Error: Attempted to close Request.body InputStream, but failed", exception); <END> } if (request.multipartMessages != null) request.multipartMessages.stream() .map(MultipartMessage::getBody) .forEach(UncheckedFiles::closeInputStream); } }</code><technical_language>if this is actionable a user trouble Briefcase. @timkoon, do useful this log</technical_language>

Target:
private <T> Response<T> uncheckedExecute(Request<T> request, Executor executor) { if (request.ignoreCookies()) cookieStore.clear(); org.apache.http.client.fluent.Request commonsRequest = getCommonsRequest(request); if(!request.headers.containsKey("X-OpenRosa-Version")){ commonsRequest.addHeader("X-OpenRosa-Version", "1.0"); } request.headers.forEach(commonsRequest::addHeader); if (request.getMethod() == POST) { HttpEntity body; if (request.isMultipart()) { MultipartEntityBuilder bodyBuilder = MultipartEntityBuilder.create(); for (MultipartMessage part : request.multipartMessages) bodyBuilder = bodyBuilder.addPart( part.getName(), new InputStreamBody(part.getBody(), ContentType.create(part.getContentType()), part.getAttachmentName()) ); body = makeRepeatable(bodyBuilder.build()); } else { body = makeRepeatable(buildBasicEntity(request.getBody())); } commonsRequest.body(body); } try { return executor .execute(commonsRequest) .handleResponse(res -> Response.from(request, res)); } catch (HttpHostConnectException e) { throw new HttpException("Connection refused", e); } catch (SocketTimeoutException | ConnectTimeoutException e) { throw new HttpException("The connection has timed out", e); } catch (IOException e) { throw new UncheckedIOException(e); } finally { request.ifBody(UncheckedFiles::closeInputStream); if (request.multipartMessages != null) request.multipartMessages.stream() .map(MultipartMessage::getBody) .forEach(UncheckedFiles::closeInputStream); } }