Fixing issue with no response object from request