hyperledger

Composer-playground not working in firefox

拜拜、爱过 提交于 2019-12-11 01:57:38
问题 The composer playground web app doesn't work correctly in Firefox. It gives Error: Object with ID 'undefined' in collection with ID 'chaincodes' does not exist in Firefox, but it works perfectly in chrome. Any ideas? 回答1: I've got the same problem locally, so the solution as suggested is to delete your cookies and browser storage. If you use this locally delete the cookies for localhost 回答2: I was having this problem which I solved by using the following commands First stop the Fabrics and

How to create participant , there identities via rest api that generated by composer rest server without importing cards via /importwallets?

只愿长相守 提交于 2019-12-11 01:18:58
问题 I have created bna and deployed in composer rest server by enabling passport and multi-user, How to create participant, their identities via rest API that generated by composer rest server without importing cards via import wallets? and there is no proper documentation for this. 回答1: assuming you've done a /Wallet/Import of an identity that can issue other identities: eg. REST Endpoint /Wallets/Import browse for file your exported admin card eg. netadmin.card and Import it. use the POST

ssl_transport_security.cc:599] Could not load any root certificate

删除回忆录丶 提交于 2019-12-11 00:58:29
问题 I try to create my own network with hyperledger compposer/fabric (v0.19.0) The network build seems to be good but when I do a composer network install ... I got this error : Composer Install.... ⠹ Installing business network. This may take a minute...E0405 10:16:40.355332702 7660 ssl_transport_security.cc:599] Could not load any root certificate. E0405 10:16:40.355402056 7660 ssl_transport_security.cc:1400] Cannot load server root certificates. E0405 10:16:40.355430951 7660 security_connector

(hyperledger composer playground) Can you see results of console.log('something') in browser?

落花浮王杯 提交于 2019-12-10 23:25:30
问题 Where console.log('') gets printed, if I don't have a local setup and working on code inside the browser. 回答1: you can see the output in the Developer console. In Firefox and Chrome browsers for example - hit CTRL-SHIFT-I and it pops up - then go to ...Console..JS and you can see what you console.log() there Beyond that (eg. client and runtime logs) see How do I see the logs for Fabric Composer 回答2: Writing console.log in a Transaction can be used to debug and see the incoming and outgoing

Hyperledger composer peer to peer connection not establishing

爱⌒轻易说出口 提交于 2019-12-10 18:47:10
问题 We have established a business network using Hyperledger composer and created participant card by creating peers. When we try to connect the peer to a different machine in the local after importing participant card then I'm getting the following error Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Enrollment failed with errors [[{"code":400,"message":"Authorization failure"}]] Business network is created in the mac

fabcar example: fatal error: unexpected signal during runtime execution [signal SIGSEGV: segmentation violation code=0x1 addr=0x63 pc=0x7f84bc4ea259]

不想你离开。 提交于 2019-12-10 17:56:35
问题 Env: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic $ go version go version go1.12 linux/amd64 $ docker -v Docker version 18.09.4, build d14af54266 $ docker-compose -v docker-compose version 1.24.0, build 0aa59064 Getting started with hyperledger-fabric following the fabcar tutorial on docs. In step - Launch the network - executing the start script ./startFabric.sh javascript I get following output: # don't

Access denied error while sending proposal to peer from java sdk

放肆的年华 提交于 2019-12-10 17:53:28
问题 I am trying to query the blockchain using the following code and getting the access denied error. also i am getting the same error while sendTransactionProposal method as well. UserContext adminUserContext = RegisterEnrollUser.registerAdminUser(Config.CA_ORG1_URL, Config.ORG1_MSP, Config.ORG1); FabricClient fabClient = new FabricClient(adminUserContext); ChannelClient channelClient = fabClient.createChannelClient(Config.CHANNEL_NAME); Channel channel = channelClient.getChannel(); Peer peer =

Error: failed to create deliver client: orderer client failed to connect to orderer: failed to create new connection: context deadline exceeded

扶醉桌前 提交于 2019-12-10 17:19:44
问题 I have been following the tutorial of Hyperledger Fabric Multi-Org setup and I was able to do it successfully. Now I want to customise it according to the name of the organization that I want to and I encountered below error when I was try to up the network. Hope someone could help me identify the problem. Thanks in advance. 回答1: it might be possible due to: TLS-connection problem, Connection problem (peer does not see orderer). Check the peer's logs in debug mode. docker logs <peer_container

Error when try to instantiate chain-code on Hyperledger Fabric

China☆狼群 提交于 2019-12-10 16:10:54
问题 I was trying to create a custom business network based on the specification described here: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#using-couchdb I have created 5 peers for org1.example.com and one peer for org2.example.com. I am able to start the network and to install chain-code using docker cli on peer0.org1.example.com, but when I try to instantiate it, I get he following error: Error: Error endorsing chaincode: rpc error: code = Unknown desc = Error

Hyperledger Fabric. Is it possible to deploy more than one chaincode to the same channel?

馋奶兔 提交于 2019-12-10 15:16:36
问题 Is it possible to deploy two different chaincodes to the same channel in Hyperledger fabric 回答1: Yes. And its possible to deploy the same chaincode to 2 or more channels. You can even deploy the same chaincode to the same channel if you use a different name. 回答2: when inspect into the block structure, I find a 'Chaincode Name' field in block, and I suppose that: One channel has one ledger(offcial doc) One channel can have two or more chaincodes The block generated by different chaincode(we