Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
错误页面嗨,伙计们,我在运行节点 SDK 设置时遇到以下错误“无法将所有对等方加入通道。原因:TypeError:client.getEventHubsForOrg 不是函数”,任何可以帮助我运行余额转移示例
错误截图
这应该有效。 在 app/joinChannel.js 替换let event_hubs = client.getEventHubsForOrg(org_name); 为 let event_hubs = channel.getChannelEventHubsForOrg(org_name);
let event_hubs = client.getEventHubsForOrg(org_name);
let event_hubs = channel.getChannelEventHubsForOrg(org_name);