I’m using the Java Ledger Bindings to get packages from the ledger via the Package service and am getting the following error:
RESOURCE_EXHAUSTED: gRPC message exceeds maximum size
My application is based on the Ping-Pong example application and the daml model has about 300+ daml files.
The exception occurs around the following code block:
DamlLedgerClient client = DamlLedgerClient.forHostWithLedgerIdDiscovery(host, port, Optional.empty());
client.connect();
PackageClient packageService = client.getPackageClient();
Flowable<String> packagesIds = packageService.listPackages();