Error:Composer runtime is not compatible with client
Error:Composer runtime is not compatible with client
启动 REST 服务器的问题,我在启动 composer-rest-server 时遇到错误
作曲家版本是 v0.20.9
composer-rest-server 版本 v0.19.20
这是日志:
nithin@:~/fabric-tools/fabric-dev-servers$ composer-rest-server
? Enter the name of the business network card to use: admin@test-bna
? Specify if you want namespaces in the generated REST API: always use namespaces
? Specify if you want to use an API key to secure the REST API: No
? Specify if you want to enable authentication for the REST API using Passport: No
? Specify if you want to enable the explorer test interface: No
? Specify a key if you want to enable dynamic logging:
? Specify if you want to enable event publication over WebSockets: No
? Specify if you want to enable TLS security for the REST API: No
To restart the REST server using the same options, issue the following command:
composer-rest-server -c admin@test-bna -n always
Discovering types from business network definition ...
Connection fails: Error: Error trying to ping. Error: Composer runtime (0.20.9) is not
compatible with client (0.19.20)
It will be retried for the next request.
Exception: Error: Error trying to ping. Error: Composer runtime (0.20.9) is not compatible with client (0.19.20)
Error: Error trying to ping. Error: Composer runtime (0.20.9) is not compatible with client (0.19.20)
at _checkRuntimeVersions.then.catch (/home/nithin/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:842:34)
at <anonymous>
出现此问题是因为您的 composer 和 composer-rest-server 不兼容意味着不相同。所以你必须升级你的结构环境。 运行下面一条命令升级composer-rest-server
。
npm uninstall -g composer-cli composer-rest-server generator-hyperledger-composer
。 卸载您已经安装的工具。
安装 0.20.9 composer-cli
npm install -g composer-cli@0.20.9
npm install -g composer-rest-server@0.20.9
npm install -g generator-hyperledger-composer@0.20.9
如果你需要本地 composer-playground 那么 运行 npm install -g composer-playground@0.20.9
希望对您有所帮助:)
启动 REST 服务器的问题,我在启动 composer-rest-server 时遇到错误 作曲家版本是 v0.20.9 composer-rest-server 版本 v0.19.20
这是日志:
nithin@:~/fabric-tools/fabric-dev-servers$ composer-rest-server
? Enter the name of the business network card to use: admin@test-bna
? Specify if you want namespaces in the generated REST API: always use namespaces
? Specify if you want to use an API key to secure the REST API: No
? Specify if you want to enable authentication for the REST API using Passport: No
? Specify if you want to enable the explorer test interface: No
? Specify a key if you want to enable dynamic logging:
? Specify if you want to enable event publication over WebSockets: No
? Specify if you want to enable TLS security for the REST API: No
To restart the REST server using the same options, issue the following command:
composer-rest-server -c admin@test-bna -n always
Discovering types from business network definition ...
Connection fails: Error: Error trying to ping. Error: Composer runtime (0.20.9) is not
compatible with client (0.19.20)
It will be retried for the next request.
Exception: Error: Error trying to ping. Error: Composer runtime (0.20.9) is not compatible with client (0.19.20)
Error: Error trying to ping. Error: Composer runtime (0.20.9) is not compatible with client (0.19.20)
at _checkRuntimeVersions.then.catch (/home/nithin/.nvm/versions/node/v8.16.2/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:842:34)
at <anonymous>
出现此问题是因为您的 composer 和 composer-rest-server 不兼容意味着不相同。所以你必须升级你的结构环境。 运行下面一条命令升级composer-rest-server
。
npm uninstall -g composer-cli composer-rest-server generator-hyperledger-composer
。 卸载您已经安装的工具。
安装 0.20.9 composer-cli
npm install -g composer-cli@0.20.9
npm install -g composer-rest-server@0.20.9
npm install -g generator-hyperledger-composer@0.20.9
如果你需要本地 composer-playground 那么 运行 npm install -g composer-playground@0.20.9
希望对您有所帮助:)