尝试部署业务网络时,我在 grpc 中收到错误 'Failed parsing HTTP/2'
When attempting to deploy a business network I get an error 'Failed parsing HTTP/2' in 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}]}
命令失败
此错误是尝试使用 Hyperledger Fabric V0.6 配置文件部署到 Hyperledger Fabric V1 运行时的结果。
在上面的示例中,没有指定配置文件,这意味着它将使用默认配置文件,并且该默认配置文件特定于 Hyperledger Fabric V0.6
强烈建议您明确指定要使用的配置文件的所有命令行交互,例如,如果您有一个名为 hlfv1
的用于连接到本地 Hyperledger Fabric V1 运行时的配置文件,那么你应该发出命令
composer network deploy -p hlfv1 -a my-network.bna -i admin -s adminpw
(注意 -p 选项以指定要使用的配置文件)
发出的命令是
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}]}
命令失败
此错误是尝试使用 Hyperledger Fabric V0.6 配置文件部署到 Hyperledger Fabric V1 运行时的结果。 在上面的示例中,没有指定配置文件,这意味着它将使用默认配置文件,并且该默认配置文件特定于 Hyperledger Fabric V0.6
强烈建议您明确指定要使用的配置文件的所有命令行交互,例如,如果您有一个名为 hlfv1
的用于连接到本地 Hyperledger Fabric V1 运行时的配置文件,那么你应该发出命令
composer network deploy -p hlfv1 -a my-network.bna -i admin -s adminpw
(注意 -p 选项以指定要使用的配置文件)