-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChaincodeServer grpc.max_receive_message_length and grpc.max_send_message_length arguments #318
Comments
Assuming this isn't a fabric-samples chaincode, is there anywhere else in the chaincode that might overwrite the grpc message length variables? |
Hello @alexanderlamb Firstly - could briefly describe what problem you ran into that means you need to up this limit? Where you sending a transaction function with a large payload? Java Chaincode does seem to have these options available - it defaults to 100Mb for max-message-size. Node chaincode has this missing I believe. |
Hi @mbwhite, Our payload size can become quite large yes. We're easily bumping up against the limit as it currently stands. As a temporary fix, we've forked this repo and bumped up the limit to 100Mb and can confirm its working. Also, this may be a separate conversation, but this issue was discovered when
|
in external mode (hyperledger#318) When utilizing the chaincode as a service, it is possible to pass some gRPC options as an argument, such as grpc.max_send_message_length. However, these server options were not utilized when declaring the server. Resolves hyperledger#318 Signed-off-by: André João Pedro de Oliveira <andre@ibm.com>
Fixed in node chaincode v2.5.4, the grpc parameters passed at chaincode startup will now be honored. |
I'm having trouble passing
grpc.max_receive_message_length
andgrpc.max_send_message_length
arguments into a chaincode instance running as a server.I've tried adding them to the cli command but haven't had any luck:
./src/chaincode.js --peer.address=0.0.0.0:9999 --grpc.max_receive_message_length=104857600 --grpc.max_send_message_length=104857600
I was wonder if someone could confirm that this functionality has been implemented yet, or if there's an alternative way to pass these values.
The text was updated successfully, but these errors were encountered: