hyperledger-fabric

Bluemix Blockchain service error with Fabric Composer

╄→尐↘猪︶ㄣ 提交于 2019-12-25 16:57:25
问题 Using fabric composer v0.7.0 I have deployed a business network to a Blockchain service on Bluemix (v0.6). After the app runs for a while I get the following error: throw er; // Unhandled 'error' event ^ Error at ClientDuplexStream._emitStatusIfDone (/home/vcap/app/node_modules/grpc/src/node/src/client.js:189:19) at ClientDuplexStream._receiveStatus (/home/vcap/app/node_modules/grpc/src/node/src/client.js:169:8) This sometimes happens when executing the composer network deploy command as well

HyperLedger-Fabric ChainCode Deployment Giving Parse Error

假如想象 提交于 2019-12-25 09:14:14
问题 I have setup a peer in a vm and its running fine. Also i have registered the chaincode with the peer through this CORE_CHAINCODE_ID_NAME=chaincode_example02 CORE_PEER_ADDRESS=localhost:51011 ./chaincode_example02 and it showed no error Now after this when i try to hit the init method from rest using this json { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID":{ "name": "chaincode_example02", "path": "github.com/hyperledger/fabric/examples/chaincode/go/chaincode

Unable to import card in Hyperledger composer

我的梦境 提交于 2019-12-25 02:21:49
问题 I'm trying to deploy a business network to Hyperledger Fabric runtime by following Hyperledger Composer tutorial on "Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations)". But whenever I try to import a network card to the network, it gives an error specifying that "Errors found in the connection profile in the card". How can I solve this issue? 回答1: Composer 0.19.13 has removed the mandatory requirement for eventUrl being present in the

Composer network start [ssl certificate error] after providing .npmrc file

岁酱吖の 提交于 2019-12-25 02:16:22
问题 I am trying to deploy a sample business network from behind a corporate proxy. I am following the developer tutorial provided. While running the command composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card -o npmrcFile=/Users/user/.npmrc I get the following error Error: Error trying to start business network. Error: No valid responses from any peers. Response from

Hyperledger, Using Google OAUTH2.0 with a REST server

蹲街弑〆低调 提交于 2019-12-25 02:16:03
问题 I deployed the network to query from the REST client and launched the REST instance. I wanted to use Google Oauth for the authentication needs but there happens to be an authentication error. The network is on the localhost:3000 and looks fine; however, when I import a business card and "try it out" the /system/historian I get this response body: "error": { "statusCode": 500, "name": "Error", "message": "Error trying login and get user Context. Error: Error trying to enroll user or load

Hyperledger Composer Identity Issue error after network restart (code:20, authorization failure)

不问归期 提交于 2019-12-25 01:36:46
问题 I am using Docker Swarm and docker-compose to setup my Fabric (v1.1) and Composer (v0.19.18) networks. I wanted to test how my Swarm/Fabric networks would respond to a host/ec2 failure, so I manually reboot the host which is running the fabric-ca, orderer, and peer0 containers. Before the reboot, everything runs perfectly with respect to issuing identities. After the reboot, though all of the Fabric containers are restarted and appear to be functioning properly, I am unable to issue

Getting Error: http: read on closed response body from Transaction Processor function in Hyperledger Composer

十年热恋 提交于 2019-12-25 00:56:14
问题 I've a fabric network running with a simple BNA. This BNA defines two types of participants viz. Corporate and Person. Here, each Person has a relationship with the corporate as shown below (cto file): participant Corporate identified by corporateId { o String corporateId o String corporateName } participant Person identified by personId { o String personId --> Corporate corporate } What I'm trying to do: Create a Corporate using Transaction Processor Function: Success Create a Person using

Hyperledger Fabric ./byfn -m up doesn't bring the network up

纵然是瞬间 提交于 2019-12-25 00:35:48
问题 I am following the tutorial to build the first network at Building your first network. When in fabric-samples/first-network, I run the command: ./byfn.sh -m generate two peers, channel, chaincode, orderer genesis block and cryptogen are created successfully. But when I run the command: ./byfn.sh -m up I get the error "line 159: docker compose: command not found. ERROR!!! Undable to start network." I have made a new clean Ubuntu 16.04 and installed everything to make sure everything is clean.

How to prevent third party to seeing the data on same channel in Hyperledger Fabric?

為{幸葍}努か 提交于 2019-12-24 20:54:32
问题 So basically in Hyperledger Fabric the third party information provider have to be a part of the channel and once they become the part of the channel they get to see all the information on the channel which can be data security breach. Is there a way we can prevent them seeing the whole data but still give us the required information. example - Market data provider for a trading system when two banks are trading each other do they need to share that trade information with the market data

Connection timeout when installing chaincode using fabric-sdk-go

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 20:17:27
问题 I have a problem that there is always a grpcs timeout when installing the chaincode using fabric-sdk-go. The GRCPS request is made from the local machine to its docker containers. ErrorMsg: lscc.getinstalledchaincodes failed: SendProposal failed: Transaction processing for endorser [localhost:7051]: Endorser Client Status Code: (2) CONNECTION_FAILED. Description: dialing connection timed out [localhost:7051] ENV: Mac OSX docker version: 18.03.1-ce docker-compose version 1.21.1, build 5a3f1a3