log the exception when sending request on error