创建 hyperledger composer rest 服务器时出错

Error creating hyperledger composer rest server

我收到以下错误:

"Error: event message must be properly signed by an identity from the same organization as the peer: [failed deserializing event creator: [Expected MSP ID Org1MSP, received ]]"

当我执行时:

composer-rest-server

类似于:

但这是在休息服务器上,我有正确的版本:

    composer -v
    composer-cli                   v0.8.0
    composer-admin                 v0.8.0
    composer-client                v0.8.0
    composer-common                v0.8.0
    composer-runtime-hlf           v0.8.0
    composer-runtime-hlfv1         v0.8.0

    docker -v
    Docker version 17.03.1-ce, build c6d412e
    docker-compose -v
    docker-compose version 1.13.0, build 1719ceb
    npm -v
    3.10.10

Hypeledger 运行 我的模型:

composer network ping -n calma-network -p hlfv1 -i admin -s adminpw
The connection to the network was successfully tested: calma-network
        version: 0.8.0
        participant: <no participant found>

Command succeeded

您输入的命令只显示composer命令行界面的版本,不包括composer rest server的版本。 composer rest 服务器是独立的,不需要 composer cli 运行。您的 composer rest 服务器很可能早于 0.8.0 版,但没有简单的方法来检查版本。一种方法是调用命令

npm list -g --depth=0 | grep composer-rest-server

您需要卸载并重新安装 composer rest 服务器才能获得最新级别。