error in server and client