Serialize only when there isn't any network error