hyperledger/fabric-chaincode-node

ChaincodeMessageHandler calls non-existent cancel() function on stream

Closed this issue · 0 comments

The stream end event handler within the fabric-shim's ChaincodeMessageHandler chat() method calls stream.cancel(). This does not exist in the grpc-js duplex stream implementation. It maybe should be calling stream.end() instead.

TypeError: stream.cancel is not a function
    at ServerDuplexStreamImpl.<anonymous> (/home/runner/work/fabric-samples/fabric-samples/full-stack-asset-transfer-guide/contracts/asset-transfer-typescript/node_modules/fabric-shim/lib/handler.js:356:20)
    at ServerDuplexStreamImpl.emit (node:events:513:28)