Code Monkey home page Code Monkey logo

Comments (3)

jcastrence avatar jcastrence commented on July 25, 2024

Assuming this isn't a fabric-samples chaincode, is there anywhere else in the chaincode that might overwrite the grpc message length variables?

from fabric-chaincode-node.

mbwhite avatar mbwhite commented on July 25, 2024

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.
This does need setting both sides I believe (based on grpc documentation).

Node chaincode has this missing I believe.

from fabric-chaincode-node.

alexanderlamb avatar alexanderlamb commented on July 25, 2024

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. This does need setting both sides I believe (based on grpc documentation).

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 stream.cancel() was being called when it no longer existed.

2022-03-29T18:50:25.937Z error [c-api:_]                                          uncaughtException: stream.cancel is not a function
TypeError: stream.cancel is not a function
    at ServerDuplexStreamImpl.<anonymous> (/home/node/app/node_modules/@arise-travel/fabric-shim/lib/handler.js:372:20)
    at ServerDuplexStreamImpl.emit (node:events:394:28)
    at ServerDuplexStreamImpl.emit (node:domain:475:12)
    at endReadableNT (node:internal/streams/readable:1331:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) 

from fabric-chaincode-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.