Returning an error if the value is empty
Adding try count mechanism to retry a request when the request is timed out