hyperledger / hyperledger/fabric
no peer combination can satisfy the endorsement policy
- Dominant language
- Go
- Stars
- 16.7k
- Forks
- 9.1k
- Avg merge
- 5h 38m
- Merged PRs (30d)
- 26
Description
### Description
Hi,
I am using :-
(As per 2.5.4 release note)
GO **_v1.20.6_**
FABRIC **_v2.5.4_**
FABRIC-SAMPLE **_v2.4.9_** _(latest tag)_
COUCH_DB **_v3.3.2_**
CA_VERSION **_v1.5.6_**
I am using fabric-sample's chaincode which is located at path _fabric-sample/asset-transfer-basic/chaincode-javascript_
This chaincode has function , named **_createAsset_**. used for adding asset record on blockchain.
When I am invoking this function from Node SDK (api client), I am getting below error.
**_ERROR [discovery] chaincodeQuery -> Failed constructing descriptor for chaincode chaincodes: : no peer combination can satisfy the endorsement policy_**
While chaincode deployment , I am passing **_--signature-policy "OR(Org1MSP.peer)"_** flag
### Steps to reproduce
1. Start fabric network with FABRIC v2.2.2, COUCH v3.1.1, CA v1.5.2, ORDERER v2.2.2
2. Deploy chaincode on this fabric network with **_--signature-policy "OR(Org1MSP.peer)"_** and call Init function first.
3. Invoke chaincode function use Node SDK (API client).
4. Migrate Fabric v2.2.2 to v2.5.4 with Couch v3.3.2 , Orderer v3.3.2, CA v1.5.6
5. check peer join the channel or not by using command
` docker exec -it peer0.org1.example.com peer channel list`
6. Invoke chaincode function again using Node SDK (Api client)
I am getting error at this point.
Contributor guide
Assessment
This issue has not been assessed yet.