fabric-dev-servers-multipeer icon indicating copy to clipboard operation
fabric-dev-servers-multipeer copied to clipboard

I'm having issue while importing card

Open rohitkhatri opened this issue 6 years ago • 1 comments

composer card import --file /tmp/[email protected]

When I run this command I get the following errors:

Failed to import the business network card
keyword:    required
dataPath:   
schemaPath: #/required
params: 
  missingProperty: x-type
message:    should have required property 'x-type'

keyword:    required
dataPath:   
schemaPath: #/required
params: 
  missingProperty: client
message:    should have required property 'client'

keyword:    required
dataPath:   
schemaPath: #/required
params: 
  missingProperty: certificateAuthorities
message:    should have required property 'certificateAuthorities'

keyword:    required
dataPath:   
schemaPath: #/required
params: 
  missingProperty: channels
message:    should have required property 'channels'

keyword:    type
dataPath:   .orderers
schemaPath: #/type
params: 
  type: object
message:    should be object

keyword:    type
dataPath:   .peers
schemaPath: #/type
params: 
  type: object
message:    should be object

Error: Errors found in the connection profile in the card
Command failed

rohitkhatri avatar Apr 12 '18 11:04 rohitkhatri

Are you are using composer-cli version 0.19.x ? if you are, try uninstalling composer-cli and reinstall version 0.16.6. According to the composer releases page ;

Business Network Cards are not transferable between v0.16.x and v0.17.x onwards. It will be necessary to manually clear your card store in order to use a different version. Please note that the CLI command to delete a named card will not work correctly if targeting a named card that was created from a different version.

I believe there is some changes in the way composer defines network cards between versions...

KeanuTomatoMomotaro avatar May 23 '18 06:05 KeanuTomatoMomotaro