Handle the case where the remote server returns an invalid response