Comments (3)
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.
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.
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)
- Update to use the newly published protobuf library
- Add support for the privateDataPurge to the API HOT 1
- Broken link
- Inconsistent formatting of x509 string returned by ClientIdentity.getID() HOT 1
- npmjs.com shows latest version @2.2.3 HOT 1
- Docs not published for new annotations HOT 1
- fabirc-shim latest-1.4 support for nodejs v16.x.x HOT 1
- Release v2.5
- Chat stream with peer cancelled or closed when starting chaincode HOT 5
- cannot get transaction id and timestamps from getHistoryForKey HOT 8
- iterator of getHistoryForKey() sdk method is not returning the txId and timestamp HOT 1
- StateBasedEndorsement Policy is missing the nOutOf.. HOT 2
- Port the FullStackApplication Tests to use as a Functional Test HOT 1
- Transition the FV tests to use Microfab HOT 1
- Chaincode does not start due to missing dependency in fabric-shim
- Published release v2.5.3 not tagged as latest HOT 1
- ChaincodeMessageHandler calls non-existent cancel() function on stream
- Wrong getTxTimestamp
- TypeError on chaincode start with fabric-shim >=2.5.1
- Use Node 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric-chaincode-node.