Hi,
I am trying to connect 0.19.5 node-red to hyperledger fabric 1.2.1 or above.
Getting connection errors such as:
[error] [hyperledger-composer-in:composer in admin@carauction-network] Error: Error trying to ping. Error: Composer runtime (0.20.6) is not compatible with client (0.19.19)
I have tried setting FABRIC_VERSION is set to 'hlfv1' and
FABRIC_VERSION is set to 'hlfv12' but without success.
I have tried to downgrade the composer tools to
├── composer-cli@0.20.6
├── composer-playground@0.19.19
├── composer-rest-server@0.19.9
├── generator-hyperledger-composer@0.20.6
├── npm@6.4.1
└── yo@2.0.5
I can't downgrade composer-cli@0.19.19 as this creates issues with the fabric samples that are online.
My node-red config is
21 Jan 13:52:07 - [info] Node-RED version: v0.19.5
21 Jan 13:52:07 - [info] Node.js version: v8.15.0
21 Jan 13:52:07 - [info] Linux 4.15.0-43-generic x64 LE
using nodes: node-red-contrib-hyperledger-composer, using the car-auction fabric samples.
Can anyone please help me to connect to hyperledger fabric 1.2.1?
Note: upgrading to Node-RED version: v0.20.0-beta.3 still gives:
[error] [hyperledger-composer-in:composer in admin@carauction-network] Error: Error trying to ping. Error: Composer runtime (0.20.6) is not compatible with client (0.19.19)
All the npm-packages below were still at v19.19 and this is what node-red was complaining about. Even though the main composer packages where updated to @latest (0.26.0)
npm i -g composer-admin@latest
npm i -g composer-common@latest
npm i -g composer-connector-hlfv1@latest
npm i -g composer-connector-proxy@latest
npm i -g composer-wallet-filesystem@latest
npm i -g composer-wallet-inmemory@latest
npm i -g composer-client@latest
I then thought, what the heck, try installing them locally.
/home/username/node_modules
npm i composer-admin@latest
npm i composer-common@latest
npm i composer-connector-hlfv1@latest
npm i composer-connector-proxy@latest
npm i composer-wallet-filesystem@latest
npm i composer-wallet-inmemory@latest
npm i composer-client@latest
(all 0.20.6)
THIS WORKED _ NODE-RED WRITES TO HL. So installing them locally allow node-red to write a new participate record to hyperledger fabric 1.2.1 (hlfv12)
Sorry ... to better understand ... For Fabric1.3.0 I have to do:
npm uninstall -g composer-admin composer-client composer-common composer-connector-hlfv1 composer-connector-proxy composer-wallet-filesystem composer-wallet-inmemory
npm i composer-admin@latest
npm i composer-common@latest
npm i composer-connector-hlfv1@latest
npm i composer-connector-proxy@latest
npm i composer-wallet-filesystem@latest
npm i composer-wallet-inmemory@latest
npm i composer-client@latest
To see what versions it returns. If there are still npm packages at v0.19.0 then yes, do the commands that you list above. i.e. remove and install the packages locally (I did it in the .node_red folder). At the time of writing the @latest is 0.26.0.
Thanks.
The issue is:
"Error: creating resource error Error trying to ping. Error: Composer runtime (0.20.6) is not compatible with client (0.19.19)"
I'm using node-red component: node-red-contrib-composer
Hi, try removing all the composer* npm packages. Then go into your node_modules directory and "rm -R composer*". Most admin's will gasp with using rm -R but that is all i know how to do it.
Then reinstall.
If this still fails, go into each package.json and look for version numbers starting 0.19.0 for each package sub-directory under the node_modules folder.
I got hit with this issue again using the latest 0.20.6 composer packages.
Delete all versions of composer* npm packages - both global and under ~/.node-red/node_modules
Check for other composer* packages using:
npm list | grep composer
Under ~/.node-red/node_modules/node-red-contrib-composer, edit the package.json file.
Change the following 3 lines:
Then re-install the npm composer* packages locally.
npm i composer-admin@latest
npm i composer-common@latest
npm i composer-connector-hlfv1@latest
npm i composer-connector-proxy@latest
npm i composer-wallet-filesystem@latest
npm i composer-wallet-inmemory@latest
npm i composer-client@latest