Hyperledger Fabric 客户端 grpc 截止日期错误
Hyperledger fabric client grpc deadline error
我正在使用 fabric 节点 js 客户端调用链码,我可以查询链码,但是当我尝试提交交易时,我收到错误。
fabric version 1.4.3
using fabric client node js
Failed to submit transaction: Error: Failed to connect before the deadline URL:grpcs://xx.xx.xxx:7050
在我的连接中 json 我使用了 GRPC 集 keepalive_timeout_ms,但我仍然遇到上述错误
"orderers": {
"orderer.example.com": {
"url": "grpcs://xx.xx.xx.xx:7050",
"grpcOptions": {
"ssl-target-name-override": "orderer.example.com",
"grpc.keepalive_timeout_ms":80000
},
"tlsCACerts": {
"path":"./fabric-node/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem"
}
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpcs://xx.xx.xx.xx:7051",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com",
"grpc.keepalive_timeout_ms": 80000
},
"tlsCACerts": {
"path": "./fabric-node/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem"
}
}
},
@fama
使用下面的代码片段,但确保已启动并正常运行 URL:grpcs://xx.xx.xxx:7050
"grpc-max-send-message-length": -1,
"grpc.keepalive_time_ms": 600000,
"grpc.http2.min_time_between_pings_ms": 120000,
"grpc.http2.max_pings_without_data": 0,
"grpc.keepalive_permit_without_calls": 1
我正在使用 fabric 节点 js 客户端调用链码,我可以查询链码,但是当我尝试提交交易时,我收到错误。
fabric version 1.4.3
using fabric client node js
Failed to submit transaction: Error: Failed to connect before the deadline URL:grpcs://xx.xx.xxx:7050
在我的连接中 json 我使用了 GRPC 集 keepalive_timeout_ms,但我仍然遇到上述错误
"orderers": {
"orderer.example.com": {
"url": "grpcs://xx.xx.xx.xx:7050",
"grpcOptions": {
"ssl-target-name-override": "orderer.example.com",
"grpc.keepalive_timeout_ms":80000
},
"tlsCACerts": {
"path":"./fabric-node/crypto-config/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem"
}
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpcs://xx.xx.xx.xx:7051",
"grpcOptions": {
"ssl-target-name-override": "peer0.org1.example.com",
"grpc.keepalive_timeout_ms": 80000
},
"tlsCACerts": {
"path": "./fabric-node/crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem"
}
}
},
@fama
使用下面的代码片段,但确保已启动并正常运行 URL:grpcs://xx.xx.xxx:7050
"grpc-max-send-message-length": -1,
"grpc.keepalive_time_ms": 600000,
"grpc.http2.min_time_between_pings_ms": 120000,
"grpc.http2.max_pings_without_data": 0,
"grpc.keepalive_permit_without_calls": 1