Go教程

Error: got unexpected status: BAD_REQUEST....... Channel/Application at version 0, but got version 1

本文主要是介绍Error: got unexpected status: BAD_REQUEST....... Channel/Application at version 0, but got version 1,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

错误:创建通道

命令:
peer channel create -o orderer.example.com:7050 -c testchannel -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
命令结果:
2021-11-22 15:20:14.724 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error authorizing update: error validating ReadSet: readset expected key [Group]  /Channel/Application at version 0, but got version 1

截图:
在org2的服务里创建通道
错误原因:通道已存在
参考博文:https://www.jianshu.com/p/248530bf31b8

这篇关于Error: got unexpected status: BAD_REQUEST....... Channel/Application at version 0, but got version 1的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!