How do I increase the gRPC message size limit in Sandbox?
App Development5 posts1,952 views6 likesLast activity May 2020
BE
bernhardOP
May 2020I’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: 27317399
I’ve tried several variations of the --maxInboundMessageSize flag, 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=41943040
Am I doing something wrong setting this flag? Am I setting the wrong flag? How do I increase the message size limit?
GE
gerolf
May 2020Does it work if you run sandbox outside of daml start?
daml sandbox --maxInboundMessageSize=41943040
AN
Andrae
May 2020RESOURCE_EXAUSTED is 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.
BE
bernhard
May 2020GE
gerolf
May 2020@bernhard: a shot in the dark, did you also increase the maxInboundMessageSize of your client application (assuming it is written for the JVM using Netty).