Hyperledger fabric网关无法接入网络



我正在开发一个Fabric应用程序,并且我正面临网关无法获得网络的问题

366 |等待网关。连接(ccp, gatewayOpts);

367 | const network = await gateway.getNetwork(channelName);| ^368 | const contract = network.getContract(chaincodeName);在第367行,我面临一个错误

下面是错误:-

20121-07-24 t13:39:03.866 z - error: [ServiceEndpoint]: error: Failed to connect before the deadline on Endorser- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectattempt:true20121-07-24 t13:39:03. 867z - error: [ServiceEndpoint]: waitForReady -连接远端gRPC服务器peer0.org1.example.com url:grpcs://localhost:7051超时:300020121-07-24 t13:39:03 .893 z - info: [NetworkConfig]: buildPeer - Failed to connect to endorser peer0.org1.example.com due to Error: Failed before the deadline on endorser - name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectattempt:true/home/user/Documents/Learnings/aries-learning/aries-javascript/aries-framework-javascript/node_modules/@grpc/grpc-js/src/client.ts:169:18在超时。_onTimeout (/home/user/文档/知识/aries-learning/aries-javascript/aries-framework-javascript node_modules/@grpc grpc-js/src/channel.ts: 579:9)在listOnTimeout(内部/定时器.js:554:17)at processTimers (internal/timers.js:497:7) {connectFailed:真}20121-07-24 t13:39:07 . 452z - error: [ServiceEndpoint]: error: Failed to connect before deadline on Discoverer- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectattempt:true20121-07-24 t13:39:07 . 452z - error: [ServiceEndpoint]: waitForReady -连接远端gRPC服务器peer0.org1.example.com url:grpcs://localhost:7051超时:300020121-07-24 t13:39:07 . 453z - error: [ServiceEndpoint]: ServiceEndpoint grpcs://localhost:7051 reset connection failed:: error:在截止日期前连接失败。- name: peer0.org1.example.com, url:grpcs://localhost:7051, connected:false, connectattempt:true[DiscoveryService]: send[mychannel] -没有发现结果

有谁能帮我解决这个问题吗?由于

这可能是很多原因,但通常是TLS问题。检查对端日志。您可能会看到一个坏的TLS消息,等等。或者注意到它没有尝试联系它,所以它可能是dns,或者更一般的连接问题。

最新更新