Ibm cloud IBM VS代码扩展结构提交转换错误

Ibm cloud IBM VS代码扩展结构提交转换错误,ibm-cloud,hyperledger-fabric,hyperledger,ibm-blockchain,ibp-vscode-extension,Ibm Cloud,Hyperledger Fabric,Hyperledger,Ibm Blockchain,Ibp Vscode Extension,我将把本地的IBM fabric vs code extension智能合约连接到nodeJS。连接成功,数据添加成功。但是在终端中,我显示了这个错误 error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Trying to connect an http1.x server\n at Object.exports.createStatusError 我使用的是最新版本的扩展,docker imag

我将把本地的IBM fabric vs code extension智能合约连接到nodeJS。连接成功,数据添加成功。但是在终端中,我显示了这个错误

 error: [Orderer.js]: sendBroadcast - on error: "Error: 14 UNAVAILABLE: Trying to connect an http1.x server\n    at Object.exports.createStatusError
我使用的是最新版本的扩展docker images版本是1.4.4

这是我的本地连接文件:

{
    "name": "basic-network",
    "version": "1.0.0",
    "client": {
        "organization": "Org1",
        "connection": {
            "timeout": {
                "peer": {
                    "endorser": "300"
                },
                "orderer": "300"
            }
        }
    },
    "channels": {
        "mychannel": {
            "orderers": [
                "orderer.example.com"
            ],
            "peers": {
                "peer0.org1.example.com": {}
            }
        }
    },
    "organizations": {
        "Org1": {
            "mspid": "Org1MSP",
            "peers": [
                "peer0.org1.example.com"
            ],
            "certificateAuthorities": [
                "ca.example.com"
            ]
        }
    },
    "orderers": {
        "orderer.example.com": {
            "url": "grpc://localhost:17055"
        }
    },
    "peers": {
        "peer0.org1.example.com": {
            "url": "grpc://localhost:17051"
        }
    },
    "certificateAuthorities": {
        "ca.example.com": {
            "url": "http://localhost:17050",
            "caName": "ca.org1.example.com"
        }
    }
}
这里是节点函数:

async function main(){

  try {

    let response;

    const userExists = await wallet.exists(userName);
    if (!userExists) {
        console.log('An identity for the user ' + userName + ' does not exist in the wallet');
        console.log('Run the registerUser.js application before retrying');
        response.error = 'An identity for the user ' + userName + ' does not exist in the wallet. Register ' + userName + ' first';
    }
    // Create a new gateway for connecting to our peer node.
    await gateway.connect(ccp, { wallet, identity: userName, discovery: gatewayDiscovery });

    console.log('Connected to Fabric gateway.');
    // Connect to our local fabric
    const network = await gateway.getNetwork('mychannel');

    console.log('Connected to mychannel. ');

    contract = await network.getContract('mycontract');
    // return callback ( contract );


    await await contract.submitTransaction('product_register', '6','medical','new');
    console.log('Transaction has been submitted');

    // Disconnect from the gateway.
    await gateway.disconnect();

  } 
  catch (error) {
      console.log(`Error processing transaction. ${error}`);
      console.log(error.stack);
      return callback ( error.stack );
  }


}
谁能让我远离这个错误


谢谢。

我会先检查17055端口是否有人在监听。谢谢david_k,这是我的错。订购方端口错误。正确的一个是17056。我会先检查一下17055端口上是否有人在监听。谢谢david_k,这是我的错。订购方端口错误。正确的是17056。