IBM-Blockchain-Archive / ibm-container-service

IBM Blockchain Platform for Developers on IBM Container Service
Apache License 2.0
89 stars 73 forks source link

should have required property 'x-type' #88

Closed erikvaningen closed 6 years ago

erikvaningen commented 6 years ago

./update_card.sh works fine and generates an updated card and the original.

The command composer card import -f admin.card goes wrong with this message: Failed to import the business network card message: should have required property 'x-type'

I am using:

What could be the cause of this problem?

KeanuTomatoMomotaro commented 6 years ago

Correct me if I'm wrong, but I think the scripts provided here would install a version 0.16.2 composer playground with fabric 1.0.3. A 0.16 card cannot be imported to a version 0.19 cli. If that is the case, try uninstalling the composer cli and reinstall the 0.16 version npm install -g composer-cli@0.16.6. And finally, try again.

lesleyannjordan commented 6 years ago

@erikvaningen please indicate the scripts or tutorial you are following and which version of fabric you are running on top of please.

erikvaningen commented 6 years ago

My Playground is v0.16.2. I tried to uninstall composer-cli, it did not work well.

I believe the https://ibm-blockchain.github.io/setup/ should indicate to install also the composer-cli v0.16.6 because now it would install the latest version ( v0.19.2).

For now I am giving up on this route and will follow https://github.com/IBM/hyperledger-fabric-on-linux-one

But thanks for this clarification, now at least my problem is clear!

sstone1 commented 6 years ago

Looks resolved; if not, Composer support has been removed anyway.