Throw an exception if we see more than one element in the endpoint list