raise early if cannot determine endpoint_path