How do I increase the gRPC message size limit in Sandbox?
- bernhardOP 1
I’m trying to submit a big transaction. Both Sandbox and Sandbox classic throw the error
Exception in thread "main" io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 27317399I’ve tried several variations of the
--maxInboundMessageSizeflag, but none of them seem to have an effect:daml start --sandbox-option="--maxInboundMessageSize=41943040" daml start --sandbox-classic --sandbox-option="--maxInboundMessageSize=41943040" daml start --sandbox-option="--maxInboundMessageSize" --sandbox-option="41943040" daml start --sandbox-classic --sandbox-option="--maxInboundMessageSize" --sandbox-option="41943040" daml start --sandbox-option=--maxInboundMessageSize --sandbox-option=41943040 daml start --sandbox-classic --sandbox-option=--maxInboundMessageSize --sandbox-option=41943040Am I doing something wrong setting this flag? Am I setting the wrong flag? How do I increase the message size limit?
- gerolf 1
Does it work if you run sandbox outside of
daml start?daml sandbox --maxInboundMessageSize=41943040 - Andrae 1
RESOURCE_EXAUSTEDis supposed to be the backpressure status code in the ledger-api, so you shouldn’t be seeing that specific error for that condition. Worth reporting it as a bug at Issues · digital-asset/daml · GitHub. - bernhard 1
- gerolf 2
@bernhard: a shot in the dark, did you also increase the
maxInboundMessageSizeof your client application (assuming it is written for the JVM using Netty).