Fabric sample调试遇到错误 Error: error getting chaincode code fabcar: Unknown chaincodeType: UNDEFIN

在尝试使用fabric-sample调试并按照官方'创建第一个应用'步骤操作时,遇到Error: error getting chaincode code fabcar: Unknown chaincodeType: UNDEFIN的错误。尝试使用不同的启动参数如'heheda',但问题依旧。分析可能是由于代码版本较旧导致的目录结构不一致。最终决定删除旧代码,从GitHub克隆最新版重试。
摘要由CSDN通过智能技术生成

几个月前下载过fabric-sample,最近想起来调试一下,按照官网“创建第一个应用”步骤做的时候遇到个错,如下:

> startFabric.sh javascript
...
ctions initialized

2019-09-17 07:12:28.371 UTC [cli/common] readBlock -> INFO 002 Received block: 0

# Join peer0.org1.example.com to the channel.

docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block

2019-09-17 07:12:28.577 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized

2019-09-17 07:12:28.685 UTC [channelCmd] executeJoin -> INFO 002 Successfully submitted proposal to join channel

Creating cli ... done

2019-09-17 07:12:30.384 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc

2019-09-17 07:12:30.384 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值