Vineet Mishra
Vineet Mishra

Reputation: 61

Hyperledger fabric :Failed to join all peers to channel. cause:TypeError: client.getEventHubsForOrg is not a function

Error pageHi Guys I am facing following error "Failed to join all peers to channel. cause:TypeError: client.getEventHubsForOrg is not a function" while running node SDK setup any could help me I am running Balance transfer example

Error screen shot

Upvotes: 1

Views: 713

Answers (1)

Subhod I
Subhod I

Reputation: 182

This should work.
In app/joinChannel.js
Replace let event_hubs = client.getEventHubsForOrg(org_name);
with let event_hubs = channel.getChannelEventHubsForOrg(org_name);

Upvotes: 3

Related Questions