hyperledger-chaincode

Hyperledger Fabric 2.0 byfn.sh error installing chaincode

故事扮演 提交于 2021-02-11 15:39:52
问题 I have the exact same issue as pointed out in this question: Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing If you are choosing to answer this question, please do review the question in the link as my issue is exactly the same except that my environment is as follows: OS: RHEL 7.7 Go version: 1.13.7 Node version: 12.13.0 Docker version: 18.09.7 (Client and Engine) NO INTERNET ACCESS I execute the script with the following command: ./byfn

Hyperledger Fabric 2.0 byfn.sh error installing chaincode

北慕城南 提交于 2021-02-11 15:39:35
问题 I have the exact same issue as pointed out in this question: Error: failed to endorse chaincode install: rpc error: code = Unavailable desc = transport is closing If you are choosing to answer this question, please do review the question in the link as my issue is exactly the same except that my environment is as follows: OS: RHEL 7.7 Go version: 1.13.7 Node version: 12.13.0 Docker version: 18.09.7 (Client and Engine) NO INTERNET ACCESS I execute the script with the following command: ./byfn

Error while instantiating the java chaincode on Hyperledger fabric network

谁说我不能喝 提交于 2021-01-29 04:18:23
问题 Java chaincode install is successful and I can see the chaincode has been installed successfully. I am getting error while instantiating the java chaincode on Hyperledger fabric network. Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: 1: ./build.sh: not found Can I get some help? Thanks 来源: https:/

Endorsers Instantiate Chaincode with error “cannot find package”

好久不见. 提交于 2020-12-08 02:18:40
问题 I created a chaincode and I imported a package to it. import ( "bytes" "encoding/json" "fmt" "strings" "golang.org/x/crypto/bcrypt" "github.com/hyperledger/fabric/core/chaincode/shim" pb "github.com/hyperledger/fabric/protos/peer") I can install that chaincode to all endorsers. But when I instantiated it to all endorsers, it faced the error: endorser failed with error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1

Hyperledger Fabric JSON response has backslashes

爱⌒轻易说出口 提交于 2020-12-08 01:50:35
问题 I'm currently testing a Hyperledger Fabric Application, but I get an unexpected JSON response. Why are there extra backslashes between every object in the response? result, err := json.Marshal(history) logger.Debug(string(result)) if err != nil { message := fmt.Sprintf("unable to marshal the result: %s", err.Error()) logger.Error(message) return shim.Error(message) } logger.Info("SimpleChaincode.getHistory exited successfully") return shim.Success(result) Actual CLI output: Chaincode invoke