[英]Send transactions failed due to timeout when creating Channel on Hyperledger Fabric
I'm executing this code https://github.com/IBM/blockchain-application-using-fabric-java-sdk . 我正在执行此代码https://github.com/IBM/blockchain-application-using-fabric-java-sdk 。 When I execute CreateChannel I get this error :
当我执行CreateChannel时,出现此错误:
Send transactions failed.
发送交易失败。 Reason: timeout
原因:超时
I checked the log of the orderer.example.com docker
container and it seems to be no communication. 我检查了
orderer.example.com docker
容器的日志,它似乎没有通信。 How could I solve this problem? 我该如何解决这个问题?
Channel create command times out when the orderer takes long enough (>5s), to respond to the transaction. 当订购者花费足够长的时间(> 5s)来响应事务时,通道创建命令超时。 You can add
--timeout duration
to increase the default value. 您可以添加
--timeout duration
以增加默认值。 I faced similar issue while creating a channel through command line - https://hyperledger-fabric.readthedocs.io/en/release-1.3/commands/peerchannel.html#peer-channel-create 通过命令行创建频道时,我遇到了类似的问题-https: //hyperledger-fabric.readthedocs.io/en/release-1.3/commands/peerchannel.html#peer-channel-create
You can check if java SDK provides an equivalent configuration in the channel apis for peers. 您可以检查Java SDK是否在对等方的通道api中提供了等效的配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.