minor fix in order to get the response body data when a network error happens.