Hyperledger Fabric-调用/ TLS握手时出错,错误为tls:第一条记录看起来不像TLS握手

时间:2018-12-12 13:47:03

标签: ssl hyperledger-fabric handshake

范围:这是一个网络,其中一个通道由3个组织,每个组织1个锚点,每个组织1个CA和每个组织1个MSP组成。

我在Hyperledger Fabric网络上遇到一个与TLS握手过程有关的问题,当我通过CLI容器对链码(正确安装并实例化)进行调用时,就会发生这种情况。

ORDERER

[core.comm] ServerHandshake -> ERRO 01b TLS handshake failed with error tls: first record does not look like a TLS handshake {"server": "Orderer", "remote address": "192.168.0.23:55806"}

CLI

Error: error sending transaction for invoke: could not send: EOF - proposal response: version:1 response:<status:200 >

我找不到解决方案,因此任何帮助都是很好的。

编辑:当我更新锚点对等节点时,我在订购者容器中也收到类似这样的警告:

    2018-12-12 14:06:00.518 UTC [common.deliver] Handle -> WARN 014 Error reading from 192.168.32.23:43938: rpc error: code = Canceled desc = context canceled
2018-12-12 14:06:00.518 UTC [comm.grpc.server] 1 -> INFO 016 streaming call completed {"grpc.start_time": "2018-12-12T14:06:00.509Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "192.168.32.23:43938", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "8.958614ms"}
2018-12-12 14:06:00.518 UTC [orderer.common.broadcast] Handle -> WARN 015 Error reading from 192.168.32.23:43940: rpc error: code = Canceled desc = context canceled
2018-12-12 14:06:00.518 UTC [comm.grpc.server] 1 -> INFO 017 streaming call completed {"grpc.start_time": "2018-12-12T14:06:00.511Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Broadcast", "grpc.peer_address": "192.168.32.23:43940", "error": "rpc error: code = Canceled desc = context canceled", "grpc.code": "Canceled", "grpc.call_duration": "7.13278ms"}
2018-12-12 14:06:10.328 UTC [comm.grpc.server] 1 -> INFO 018 streaming call completed {"grpc.start_time": "2018-12-12T14:06:05.692Z", "grpc.service": "orderer.AtomicBroadcast", "grpc.method": "Deliver", "grpc.peer_address": "192.168.32.13:40886", "grpc.peer_subject": "CN=peer1.farmer.supply-chain-network.com,L=San Francisco,ST=California,C=US", "error": "context finished before block retrieved: context canceled", "grpc.code": "Unknown", "grpc.call_duration": "4.636199388s"}

预先感谢

1 个答案:

答案 0 :(得分:6)

似乎订购者期望使用tls连接,但cli未与tls连接。 您在调用过程中是否正确指定了 declare var $: any; describe('dialogShow ',()=>{ it('should show dialog box with correct message',()=>{ let dialogBox = new DialogBoxComponent(); let dialogMessage="some message"; dialogBox.dialogID="some id"; let dialogContext= new DialogContext("some context id","some context"); dialogBox.dialogShow(dialogMessage,dialogContext); expect(dialogBox.dialogMessage).toEqual(dialogMessage); expect(dialogBox.dialogContext).toEqual(dialogContext); }); }); });