For me this was an error based on the subset of my rows I was trying to test more quickly - this subset didn't have at least one of each label, so it was giving this error.