I am having an issue in the Hyperledger fabric Node SDK.
Network Details:
- The network consists of 4 organisations each deployed on different Kubernetes cluster.
- Each organisation has 2 peers which joined a single channel say mychannel.
- Each organisation has 1 CA running.
- Ordering service is Raft.
- CouchDB is used as statedb.
- The invokes from the CLI are also working fine and the data is being synced between all the 8 peers.
- Hypelredger explorer is up and running with the one organisation details and is able to list all the other 6 peers in the dashboard.
Now back to issue, I tried to deploy the Node.js SDK for Org1. I created a connection profile having the details of the Org1 Peers, Orderer and CA.
The users are enrolled (Admin and user1).
Now when I try to invoke transaction there are two cases:
Service discovery enabled: In this case, the SDK tries to communicate with the other peers in the network and creator org peers but all returns the context deadline exceed error.
Service discovery disabled: Invokes successful.
I have no idea why the invoke transactions are failed when the service discovery is enabled.