2017-05-20 30 views
0

發出了命令,當試圖部署業務網絡我得到一個錯誤「無法解析HTTP/2」 GRPC

composer network deploy -a my-network.bna -i admin -s adminpw

收到完整的錯誤是

Error: {"created":"@1495236947.733570390","description":"Failed parsing HTTP/2","file":"../src/core/ext/transport/chttp2/transport/chttp2_transport.c","file_line":2022,"grpc_status":14,"referenced_errors":[{"created":"@1495236947.733545222","description":"Expected SETTINGS frame as the first frame, got frame type 80","file":"../src/core/ext/transport/chttp2/transport/parsing.c","file_line":479}{"created":"@1495236947.733562422","description":"Trying to connect an http1.x server","file":"../src/core/ext/transport/chttp2/transport/chttp2_transport.c","file_line":1995,"http_status":400}]}

命令失敗

回答

1

此錯誤是嘗試使用Hyperledger Fabric V0.6配置文件部署到Hyperledger Fabric V1運行時的結果。 在上面的示例中,沒有指定配置文件,這意味着它將使用默認配置文件,並且該默認配置文件特定於Hyperledger Fabric V0.6

強烈建議您爲所有命令行交互顯式指定配置文件你想使用,因此,例如,如果你有一個配置文件用於連接到名爲hlfv1那麼你應該發出命令

composer network deploy -p hlfv1 -a my-network.bna -i admin -s adminpw

(注意-p選項當地Hyperledger面料V1運行指定配置文件使用)

相關問題