check network error