Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public HttpResponse request(HttpRequest smartsheetRequest) throws HttpClientExce
this.releaseConnection();

} catch (ClientProtocolException e) {
this.releaseConnection();
logger.warn("ClientProtocolException " + e.getMessage());
logger.warn(LOG_ARG, RequestAndResponseData.of(apacheHttpRequest, requestEntityCopy, smartsheetResponse,
responseEntityCopy, REQUEST_RESPONSE_SUMMARY));
Expand All @@ -305,6 +306,7 @@ public HttpResponse request(HttpRequest smartsheetRequest) throws HttpClientExce
}
throw new HttpClientException(ERROR_OCCURRED, e);
} catch (NoHttpResponseException e) {
this.releaseConnection();
logger.warn("NoHttpResponseException {}", e.getMessage());
logger.warn(LOG_ARG, RequestAndResponseData.of(apacheHttpRequest, requestEntityCopy, smartsheetResponse,
responseEntityCopy, REQUEST_RESPONSE_SUMMARY));
Expand All @@ -322,6 +324,7 @@ public HttpResponse request(HttpRequest smartsheetRequest) throws HttpClientExce
}
throw new HttpClientException(ERROR_OCCURRED, e);
} catch (IOException e) {
this.releaseConnection();
logger.warn(LOG_ARG, RequestAndResponseData.of(apacheHttpRequest, requestEntityCopy, smartsheetResponse,
responseEntityCopy, REQUEST_RESPONSE_SUMMARY));
throw new HttpClientException(ERROR_OCCURRED, e);
Expand Down
Loading