Re: ERROR IS COMMERCIAL PAPER


Paul O'Mahoney <mahoney@...>
 

hi there


are you following these instructions https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/README.md  in the master branch - or using a different tutorial ?

On 'users' question: the tutorial makes use of Fabric Samples test-network - and the default, EXISTING identities, separately registered to Org1 (ie 'DigiBank') and Org2 (ie 'MagnetoCorp'). As part of the tutorial steps, these identities are added to wallets for Balaji (Org1/DigiBank) and Isabella (Org2/MagnetoCorp). As you know, there are node.js applications for each organization that use the wallets/identities to perform transactions per the README).

Would also check your network is up with the chaincode containers running for each org (docker ps).

Lastly in the README section https://github.com/hyperledger/fabric-samples/blob/master/commercial-paper/README.md#deploy-the-smart-contract-to-the-channel  - there are peer chaincode invoke  and peer chaincode query  commands to send simple transactions (to check if you've deployed everything successfully) - were these successful?


cheers Paul


From:        360viewsglobal@...
To:        fabric@...
Date:        27/09/2020 01:11
Subject:        [EXTERNAL] [Hyperledger Fabric] ERROR IS COMMERCIAL PAPER
Sent by:        fabric@...




When trying to run node issue.js - I get:

node issue.js
Connect to Fabric gateway.
Use network channel: mychannel.
Use org.papernet.commercialpaper smart contract.
Submit commercial paper issue transaction.
2020-09-26T23:35:42.758Z - error: [DiscoveryService]: send[papercontract] - Channel:mychannel received discovery error:failed constructing descriptor for chaincodes:<name:"papercontract" >
Error processing transaction. Error: DiscoveryService: papercontract error: failed constructing descriptor for chaincodes:<name:"papercontract" >
Error: DiscoveryService: papercontract error: failed constructing descriptor for chaincodes:<name:"papercontract" >
    at DiscoveryService.send (/home/dora/fabric-samples/commercial-paper/organization/magnetocorp/application/node_modules/fabric-common/lib/DiscoveryService.js:345:11)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Disconnect from Fabric gateway.
Issue program complete.

what is the prolem?

Also tutorial very UNCLEAR regarding users - should you define different user? Isabella, Admin etc. How to define them?




Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

Join fabric@lists.hyperledger.org to automatically receive all group messages.