Fabric各种错误及解决办法

  1. grpc: addrConn.resetTransport failed to create client transport: connection error: desc = “transport: Error while dialing dial tcp: lookup orderer.example.com on 127.0.0.11:53: no such host”; Reconnecting to {orderer.example.com:7050 }
    Error: Error connecting due to rpc error: code = Unavailable desc = grpc: the connection is unavailable

    解决办法:

    执行:./network_setup.sh down

    然后:重启Docker

    ./network_setup.sh up

  2. API error (404): {“message”:"network e2ecli_default not found"API error (404): {“message”:"network e2ecli_default not found"API error (404): {“message”:"network e2ecli_default not found"API error (404): {“message”:“network e2ecli_default not found”
    解决办法:

    切换到这个目录下:
    cd /opt/gopath/src/github.com/hyperledger/fabric/examples/e2e_cli/base/
    vi peer-base.yaml
    可以看到如下:
    Fabric各种错误及解决办法_第1张图片
    修改此处- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2eicli_default
    修改后 - CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=e2e_cli_default
    执行:
    cd …
    ./network_setup.sh down
    ./network_setup.sh up

  3. Error: Got unexpected status: BAD_REQUEST
    解决办法:
    ./network_setup.sh down
    ./network_setup.sh up

你可能感兴趣的:(Fabric)