Raise error if endpoint url not set.