siglesiasg / node-red-hyperledger-fabric-gateway

A Hyperledger Fabric Gateway for Node Red 3.x implementation nodes to work with recent HLF networks v2.4 (or later)
Apache License 2.0
1 stars 0 forks source link

Need a working example #5

Open alsolh opened 1 week ago

alsolh commented 1 week ago

Thank you for your great work, i am trying to run an example and i am getting below errors

10/27/2024, 9:18:13 PMnode: 784c6f5af615db7d msg : error "Error: 9 FAILED_PRECONDITION: no endorsers found in the gateway's organization; retry specifying endorsing organization(s) to protect transient data" 10/27/2024, 9:18:13 PMnode: f5670cc282cd7e2f msg : error "Error: 9 FAILED_PRECONDITION: evaluate call to endorser returned error: error validating proposal: access denied: channel [businesschannel] creator org [Org1MSP]"

can you please guide me what is the best basic example to run the hyperledger and use your nodes, perhaps with a sample flow?

i was trying to run this hyperledger

https://github.com/yeasy/docker-compose-files/tree/master/hyperledger_fabric

2024-10-27_21-29-24
siglesiasg commented 4 days ago

Hi!

Looking at those errors it may be some incorrect configuration in Hyperledger Fabric, have you been able to send some tx using plain js?

Best way to start up an HLF in local is to use Microfab instead of using a "manual" deployment like in yeasy repository. You have a complete example in docker folder with a test chaincode. Check and run docker-compose.yaml. After running that docker-compose with blockchain network running, you can run npm with start:debug and you will get a local NodeRed with a testing example flow