Has ~~package~~ party management service been removed?

Calling the bare GRPC endpoint on 2.5.0 sandbox, I see:

java.lang.Exception: NonEmptyList(grpc-status: 12)
[error] NonEmptyList(grpc-message: Method not found: com.daml.ledger.api.v1.PartyManagementService/GetParties)

Has it been removed, or is this a bug in my code? If the former, why are the protobuf definitions still in the SDK?

You’re mixing up endpoints here. Your title and the linked post are about the package service. The error message shows that you’re actually trying to query the party management service. That’s an admin service under com.daml.ledger.api.v1.admin.PartyManagementService/GetParties.

I personally like using grpcurl to discover endpoints, e.g.,

moritz@moritz-p5570 ~ [2]> grpcurl -plaintext localhost:6865 list
com.daml.ledger.api.v1.ActiveContractsService
com.daml.ledger.api.v1.CommandCompletionService
com.daml.ledger.api.v1.CommandService
com.daml.ledger.api.v1.CommandSubmissionService
com.daml.ledger.api.v1.LedgerConfigurationService
com.daml.ledger.api.v1.LedgerIdentityService
com.daml.ledger.api.v1.PackageService
com.daml.ledger.api.v1.TransactionService
com.daml.ledger.api.v1.VersionService
com.daml.ledger.api.v1.admin.ConfigManagementService
com.daml.ledger.api.v1.admin.IdentityProviderConfigService
com.daml.ledger.api.v1.admin.MeteringReportService
com.daml.ledger.api.v1.admin.PackageManagementService
com.daml.ledger.api.v1.admin.ParticipantPruningService
com.daml.ledger.api.v1.admin.PartyManagementService
com.daml.ledger.api.v1.admin.UserManagementService
grpc.health.v1.Health
grpc.reflection.v1alpha.ServerReflection

You’re right. I just noticed I’m missing the admin from the URI.